{"id":15290144,"url":"https://github.com/npm/name-from-folder","last_synced_at":"2025-04-23T04:32:27.048Z","repository":{"id":43882082,"uuid":"251155897","full_name":"npm/name-from-folder","owner":"npm","description":"Get the package name from a folder path","archived":false,"fork":false,"pushed_at":"2025-04-10T00:44:20.000Z","size":139,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-10T01:37:18.473Z","etag":null,"topics":["npm-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-29T23:28:27.000Z","updated_at":"2025-04-04T04:28:35.000Z","dependencies_parsed_at":"2024-04-20T22:54:29.505Z","dependency_job_id":"dffce05b-c5d1-450b-abc7-5910885052ea","html_url":"https://github.com/npm/name-from-folder","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":0.5384615384615384,"last_synced_commit":"f6eb29ab6f014198d0d9436e79b1b9781973871a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fname-from-folder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fname-from-folder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fname-from-folder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fname-from-folder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/name-from-folder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250371953,"owners_count":21419692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm-cli"],"created_at":"2024-09-30T16:05:37.103Z","updated_at":"2025-04-23T04:32:26.681Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fname-from-folder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Fname-from-folder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fname-from-folder/lists"}