File.prototype.ns()

Returns a string to be used for namespacing.

Syntax

file.ns() string

Description

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.

Examples

Basic example.

Documenting the prefix char and the length.

Documenting the format with a regular expression.