check-local-package
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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)

Package Sidebar

Install

npm i check-local-package

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

16 kB

Total Files

9

Last publish

Collaborators

  • xwb