nl_tokens: A namespace constructor for getting an object that mimicks namespaces / packages in languages like Java and Actionscript . Classes are loaded on a per request basis . @example // Example 1 let sjl = require ( sjljs ) ns = new sjl . nodejs . Namespace ( __dirname )
pl_tokens: function Namespace ( dir , allowedFileExts , ignoredDirs , ignoredFileNames ) { ignoredDirs = <mask> . isArray ( ignoredDirs ) ? ignoredDirs : null ; ignoredFileNames = Array . isArray ( ignoredFileNames ) ? ignoredFileNames : null ; let self = this , files = fs . readdirSync ( dir ) ; allowedFileExts = allowedFileExts || [ '.js' , '.json' ] ; if ( files && Array . isArray ( files ) && files . length > 0 ) { processFiles ( files , dir , allowedFileExts , ignoredDirs , ignoredFileNames , self ) ; } }