1.0.4 • Published 9 years ago
scoped-modules-checker v1.0.4
scoped-modules-checker
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT