WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: ns.


Returns a string to be used for namespacing.


file.ns() string


Returns a string to be used for namespacing variables in CSS os JS. It only contains alphanumeric chars starting with N for namespace. Currently its 9 chars long including the prefix char but that may change in the future.


Basic example.

Documenting the prefix char and the length.

Documenting the format with a regular expression.

Subscribe to our newsletter!