1 npm-cache(3) -- manage the npm cache programmatically
2 =====================================================
6 npm.commands.cache([args], callback)
9 npm.commands.cache.clean([args], callback)
10 npm.commands.cache.add([args], callback)
11 npm.commands.cache.read(name, version, forceBypass, callback)
15 This acts much the same ways as the npm-cache(1) command line
18 The callback is called with the package.json data of the thing that is
19 eventually added to or read from the cache.
21 The top level `npm.commands.cache(...)` functionality is a public
22 interface, and like all commands on the `npm.commands` object, it will
23 match the command line behavior exactly.
25 However, the cache folder structure and the cache helper functions are
26 considered **internal** API surface, and as such, may change in future
27 releases of npm, potentially without warning or significant version