{"name":"@npmcli/name-from-folder","version":"4.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/name-from-folder@4.0.0","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/name-from-folder#readme","bugs":{"url":"https://github.com/npm/name-from-folder/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"b4d516ae4fab5ed4e8e8032abff3488703fc24a3","tarball":"http://registry-npm.ywwl.com/@npmcli/name-from-folder/download/@npmcli/name-from-folder-4.0.0.tgz","fileCount":4,"integrity":"sha512-qfrhVlOSqmKM8i6rkNdZzABj8MKEITGFAY+4teqBziksCQAOLutiAxM1wY2BKEd8KjUSpWmWCYxvXr0y4VTlPg==","signatures":[{"sig":"MEUCIFDPjb8PAeoZxk1v7hfvMWv7ixX69xRL8iGViKaoL1ovAiEAlSTGNJ9mLY9w7hT9nSlzaC9zuxuT4Ey4tEfbVW4BVSg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fname-from-folder@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2451,"size":1476,"noattachment":false,"key":"/@npmcli/name-from-folder/-/@npmcli/name-from-folder-4.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"2e09b7e1eb12fd33f035923905ab859a9086936b","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a86a275b-6cf6-495d-949d-dbaf9ad7d814"}},"repository":{"url":"git+https://github.com/npm/name-from-folder.git","type":"git"},"_npmVersion":"11.6.2","description":"Get the package name from a folder path","directories":{},"templateOSS":{"publish":true,"version":"4.27.1","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.2","@npmcli/template-oss":"4.27.1","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/name-from-folder_4.0.0_1761146993683_0.009450970811423431","host":"s3://npm-registry-packages-npm-production"},"readme":"# @npmcli/name-from-folder\n\nGet the package name from a folder path, including the scope if the\nbasename of the dirname starts with `@`.\n\nFor a path like `/x/y/z/@scope/pkg` it'll return `@scope/pkg`.  If the path\nname is something like `/x/y/z/pkg`, then it'll return `pkg`.\n\n## USAGE\n\n```js\nconst nameFromFolder = require('@npmcli/name-from-folder')\nconst name = nameFromFolder('/some/folder/path')\n```\n","publish_time":1761146993885,"_cnpm_publish_time":1761146993885,"dist-tags":{"latest":"5.0.0"}}