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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i check-local-package

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

16 kB

Total Files

9

Last publish

Collaborators

  • xwb