check-local-package
v1.0.1
Published
check local package
Downloads
4
Maintainers
Readme
check-local-package
introduction
Check whether the local node package exists.
example for commonJS
const checkPackage = require('check-local-package');
/**
* @param cwd Cwd is a Current Window Directory
* @param packageName PackageName is package name(optional)
*/
checkPackage(cwd, packageName) //
example for ts
import * as checkPackage from 'check-local-package';
/**
* @param cwd Cwd is a Current Window Directory
* @param packageName PackageName is package name(optional)
*/
checkPackage(cwd, packageName)