audit-package.js
function(pkgManagerName, pkgName, versionRange, callback) {
			if (!myCache) {
				myCache = cache({
					base: require('os').homedir() + "/.auditjs",
					name: 'auditjs3x',
					duration: 1000 * 3600 * CACHE_DURATION_HOURS //one day
				});
			}
			cleanCache();
			auditPackagesImpl([{pm: pkgManagerName, name: pkgName, version: versionRange}], callback);
		}
function(pkgManagerName, pkgName, versionRange, callback) {
			if (!myCache) {
				myCache = cache({
					base: require('os').homedir() + "/.auditjs",
					name: 'auditjs3x',
					duration: 1000 * 3600 * CACHE_DURATION_HOURS //one day
				});
			}
			cleanCache();
			auditPackagesImpl([{pm: pkgManagerName, name: pkgName, version: versionRange}], callback);
		}
function ( pkgManagerName , pkgName , versionRange , callback ) { if ( ! myCache ) { myCache = cache ( { base : require ( 'os' ) . homedir ( ) + "/.auditjs" , name : 'auditjs3x' , duration : 1000 * 3600 * CACHE_DURATION_HOURS //one day } ) ; } cleanCache ( ) ; auditPackagesImpl ( [ { pm : pkgManagerName , name : pkgName , version : versionRange } ] , callback ) ; }
Audit a specific package

@param pkgManagerName Name of the package manager the package belongs to
@param pkgName Name of the package to audit
@param versionRange Semantic version range for the package
@param callback Function to call on completion of each dependency
analysis. This call back has 2 arguments:
(err, single_package_data).
Audit a specific package