Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NPM-CACHE(3)							  NPM-CACHE(3)

NAME
       npm-cache - manage the npm cache	programmatically

SYNOPSIS
	 npm.commands.cache([args], callback)

	 // helpers
	 npm.commands.cache.clean([args], callback)
	 npm.commands.cache.add([args],	callback)
	 npm.commands.cache.read(name, version,	forceBypass, callback)

DESCRIPTION
       This  acts  much	the same ways as the npm help cache command line func-
       tionality.

       The callback is called with the package.json data of the	thing that  is
       eventually added	to or read from	the cache.

       The  top	level npm.commands.cache(...) functionality is a public	inter-
       face, and like all commands on the npm.commands object, it  will	 match
       the command line	behavior exactly.

       However,	 the cache folder structure and	the cache helper functions are
       considered internal API surface,	and as such, may change	in future  re-
       leases  of  npm,	potentially without warning or significant version in-
       crementation.

       Use at your own risk.

				  April	2017			  NPM-CACHE(3)

NAME | SYNOPSIS | DESCRIPTION

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=npm-cache&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help