is-valid-npm-name
Version:
Checks if a given string is a valid npm package name adhering to npm rules and best practice
120 lines (119 loc) • 2.71 kB
JSON
{
"name": "is-valid-npm-name",
"description": "Checks if a given string is a valid npm package name adhering to npm rules and best practice",
"version": "0.0.5",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"bugs": {
"url": "https://github.com/lassjs/is-valid-npm-name/issues",
"email": "niftylettuce@gmail.com"
},
"contributors": [
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
],
"dependencies": {
"is-string-and-not-blank": "^0.0.2",
"speakingurl": "^14.0.1"
},
"devDependencies": {
"ava": "^2.4.0",
"codecov": "^3.6.1",
"cross-env": "^6.0.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^3.1.0",
"lint-staged": "^9.5.0",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
"remark-cli": "^7.0.1",
"remark-preset-github": "^0.0.16",
"xo": "^0.25.3"
},
"engines": {
"node": ">=8.3"
},
"homepage": "https://github.com/lassjs/is-valid-npm-name",
"keywords": [
"is-valid-npm-name",
"lass",
"npm",
"name",
"package",
"scoped",
"validator",
"validation",
"scope",
"check",
"checker",
"validity"
],
"license": "MIT",
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}": [
"prettier --write --single-quote --trailing-comma none",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
]
},
"main": "index.js",
"nyc": {
"check-coverage": true,
"lines": 100,
"functions": 100,
"branches": 100,
"reporter": [
"lcov",
"html",
"text"
]
},
"remarkConfig": {
"plugins": [
"preset-github"
]
},
"repository": {
"type": "git",
"url": "https://github.com/lassjs/is-valid-npm-name"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo",
"precommit": "lint-staged && npm test",
"test": "npm run lint && npm run test-coverage",
"test-coverage": "cross-env NODE_ENV=test nyc ava"
},
"xo": {
"extends": "prettier",
"plugins": [
"prettier"
],
"parserOptions": {
"sourceType": "script"
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "none"
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"capitalized-comments": "off",
"camelcase": "off",
"no-warning-comments": "off"
},
"space": true
}
}