UNPKG

validate-npm-package-name

Version:

Give me a string and I'll tell you if it's a valid npm package name

59 lines (58 loc) 1.79 kB
{ "name": "validate-npm-package-name", "version": "7.0.1", "description": "Give me a string and I'll tell you if it's a valid npm package name", "main": "lib/", "directories": { "test": "test" }, "devDependencies": { "@npmcli/eslint-config": "^6.0.0", "@npmcli/template-oss": "4.28.1" }, "scripts": { "cov:test": "TAP_FLAGS='--cov' npm run test:code", "test:code": "tap ${TAP_FLAGS:-'--'} test/*.js", "test:style": "standard", "test": "node --test './test/**/*.js'", "lint": "npm run eslint", "postlint": "template-oss-check", "template-oss-apply": "template-oss-apply --force", "lintfix": "npm run eslint -- --fix", "snap": "node --test --test-update-snapshots './test/**/*.js'", "posttest": "npm run lint", "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", "test:node20": "node --test test", "test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'" }, "repository": { "type": "git", "url": "git+https://github.com/npm/validate-npm-package-name.git" }, "keywords": [ "npm", "package", "names", "validation" ], "author": "GitHub Inc.", "license": "ISC", "bugs": { "url": "https://github.com/npm/validate-npm-package-name/issues" }, "homepage": "https://github.com/npm/validate-npm-package-name", "files": [ "bin/", "lib/" ], "engines": { "node": "^20.17.0 || >=22.9.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", "version": "4.28.1", "publish": true, "testRunner": "node:test", "latestCiVersion": 24 } }