{"name":"@npmcli/name-from-folder","version":"3.0.0","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":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","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}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","tap":"^16.3.2"},"engines":{"node":"^18.17.0 || >=20.5.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.3","publish":true},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"_id":"@npmcli/name-from-folder@3.0.0","gitHead":"0746b77be041a53c393c8d94b5e70620f205a4dc","bugs":{"url":"https://github.com/npm/name-from-folder/issues"},"homepage":"https://github.com/npm/name-from-folder#readme","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-61cDL8LUc9y80fXn+lir+iVt8IS0xHqEKwPu/5jCjxQTVoSCmkXvw4vbMrzAMtmghz3/AkiBjhHkDKUH+kf7kA==","shasum":"ed49b18d16b954149f31240e16630cfec511cd57","tarball":"http://registry-npm.ywwl.com/@npmcli/name-from-folder/download/@npmcli/name-from-folder-3.0.0.tgz","fileCount":4,"unpackedSize":2451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fname-from-folder@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDueTxLhhpryBQzU9DAtAz53uZ9tsFbavip1Vq3FsUZIQIgLUdONPKYCr76rhY/jfyucdvZOrcx3oPez7MaXGjr8HM="}],"size":1477,"noattachment":false,"key":"/@npmcli/name-from-folder/-/@npmcli/name-from-folder-3.0.0.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/name-from-folder_3.0.0_1727205190601_0.1513681029431626"},"_hasShrinkwrap":false,"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":1727205190812,"maintainers":[{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"gar","email":"gar+npm@danger.computer"}],"_cnpm_publish_time":1727205190812,"dist-tags":{"latest":"5.0.0"}}