]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man3/npm-cache.3
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man3 / npm-cache.3
1 .TH "NPM\-CACHE" "3" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-cache\fR \- manage the npm cache programmatically
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm\.commands\.cache([args], callback)
9
10 // helpers
11 npm\.commands\.cache\.clean([args], callback)
12 npm\.commands\.cache\.add([args], callback)
13 npm\.commands\.cache\.read(name, version, forceBypass, callback)
14 .fi
15 .RE
16 .SH DESCRIPTION
17 .P
18 This acts much the same ways as the npm help cache command line
19 functionality\.
20 .P
21 The callback is called with the package\.json data of the thing that is
22 eventually added to or read from the cache\.
23 .P
24 The top level \fBnpm\.commands\.cache(\.\.\.)\fP functionality is a public
25 interface, and like all commands on the \fBnpm\.commands\fP object, it will
26 match the command line behavior exactly\.
27 .P
28 However, the cache folder structure and the cache helper functions are
29 considered \fBinternal\fR API surface, and as such, may change in future
30 releases of npm, potentially without warning or significant version
31 incrementation\.
32 .P
33 Use at your own risk\.
34