{"name":"@npmcli/name-from-folder","version":"5.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/name-from-folder@5.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@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"},"dist":{"shasum":"3155fea3bd78d9a577a0fa493304e70a79f65af7","tarball":"http://registry-npm.ywwl.com/@npmcli/name-from-folder/download/@npmcli/name-from-folder-5.0.0.tgz","fileCount":4,"integrity":"sha512-Mua2i5asmOn4sGGAsANS9Guamo7sgUd4BihhQWzlNGz6l/Ki23CzC2oGe4I94r2k/39ImCjDLbyu/rSJr/SXoA==","signatures":[{"sig":"MEYCIQCCNhvwOyft5bSEOHW0f2Rh5zfsbtKp8nu7zpHRiO9ragIhALcSXrR183FieIFByOgKvqTw1M1IPEpiqUGwo3AWd0gT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fname-from-folder@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2711,"size":1550,"noattachment":false,"key":"/@npmcli/name-from-folder/-/@npmcli/name-from-folder-5.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"71f66be4160538aecc862aeafeb130245fc62bc5","scripts":{"lint":"npm run eslint","snap":"node --test --test-update-snapshots './test/**/*.js'","test":"node --test './test/**/*.js'","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","test:cover":"node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'","test:node20":"node --test test","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.14.1","description":"Get the package name from a folder path","directories":{},"templateOSS":{"publish":true,"version":"5.0.0","testRunner":"node:test","latestCiVersion":24,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"@npmcli/template-oss":"5.0.0","@npmcli/eslint-config":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/name-from-folder_5.0.0_1778265646614_0.6111381538779708","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":1778265647120,"_cnpm_publish_time":1778265647120,"dist-tags":{"latest":"5.0.0"}}