1.0.1 • Published 3 years ago

check-local-package v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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)