1.0.6 • Published 4 years ago

@vta/helpers v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@vta/helpers

some helpers to use

npm Build Status

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 names3.entry
  • spawn: spawns a new process using the given command, with command line arguments in args.

MIT License