0.0.2 • Published 10 years ago
notation-to-obj v0.0.2
notation-to-obj
Js utility function to get javascript object from a string notation,
useful in fetching objects such as process.stdout that being notated as pure string in config files.
Utililty Function
GetObjectFromName(name: string, modulePath?: string): anynameis the string notation of the object, such asprocess.stdout,bunyan.stdSerializers.err.- Optional parameter
modulePathis for specify the loading module path that the same asrequire()of CommonJS, ifmodulePathis not given, it will search global object's properties.