@vta/helpers
v1.0.6
Published
some helpers to use
Downloads
6
Readme
@vta/helpers
some helpers to use
Install
yarn add @vta/helpers
Helpers
- clearRequireCache: clear nodejs module system cache
- deepClone: deep clone an object
- deepMerge: deep merge an object to another one
- fileExists: asynchronous tests whether or not the given path exists
- fileExistsSync: synchronous tests whether or not the given path exists
- loadModule: asynchronous load module of the given path
- loadModuleSync: synchronous load module of the given path
- parseJsonPath: parse a string path like
names[3].plugins[id="runtime"][8].entry
to a JSON object - readJsonValue: read json value from a string path like
names[3][8].entry
- setJsonValue: set value to json by a string path like names[3][8].entry
- spawn: spawns a new process using the given command, with command line arguments in args.