scoped-modules-checker

1.0.4 • Public • Published

scoped-modules-checker Build Status

To check the npm package is scoped packages.

Installation

npm install scoped-modules-checker

Usage

var checker = require("scoped-modules-checker");
var packageJSONPath = path.join(process.cwd(), "package.json");
var pkg = JSON.parse(fs.readFileSync(packageJSONPath));
var errors = checker.validateScopedPackage(pkg);
if (errors.length > 0) {
    // Found Error
    console.error(errors.join("\n"));
}

Tests

npm test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Package Sidebar

Install

npm i scoped-modules-checker

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • azu