UNPKG

@npmcli/name-from-folder

Version:

Get the package name from a folder path

43 lines (42 loc) 1.36 kB
{ "name": "@npmcli/name-from-folder", "version": "5.0.0", "files": [ "bin/", "lib/" ], "main": "lib/index.js", "description": "Get the package name from a folder path", "repository": { "type": "git", "url": "git+https://github.com/npm/name-from-folder.git" }, "author": "GitHub Inc.", "license": "ISC", "scripts": { "test": "node --test './test/**/*.js'", "snap": "node --test --test-update-snapshots './test/**/*.js'", "lint": "npm run eslint", "postlint": "template-oss-check", "template-oss-apply": "template-oss-apply --force", "lintfix": "npm run eslint -- --fix", "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'" }, "devDependencies": { "@npmcli/eslint-config": "^6.0.0", "@npmcli/template-oss": "5.0.0" }, "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", "version": "5.0.0", "publish": true, "testRunner": "node:test", "latestCiVersion": 24 } }