]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-cache.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-cache.md
1 npm-cache(3) -- manage the npm cache programmatically
2 =====================================================
3
4 ## SYNOPSIS
5
6     npm.commands.cache([args], callback)
7
8     // helpers
9     npm.commands.cache.clean([args], callback)
10     npm.commands.cache.add([args], callback)
11     npm.commands.cache.read(name, version, forceBypass, callback)
12
13 ## DESCRIPTION
14
15 This acts much the same ways as the npm-cache(1) command line
16 functionality.
17
18 The callback is called with the package.json data of the thing that is
19 eventually added to or read from the cache.
20
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.
24
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
28 incrementation.
29
30 Use at your own risk.