{"id":22308807,"url":"https://github.com/ratson/pkg-dir-name","last_synced_at":"2025-07-24T17:12:27.932Z","repository":{"id":57142360,"uuid":"100287505","full_name":"ratson/pkg-dir-name","owner":"ratson","description":"Find name from closest package.json or its directory name.","archived":false,"fork":false,"pushed_at":"2017-08-14T16:26:02.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:59:57.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ratson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-14T16:25:09.000Z","updated_at":"2022-06-21T19:31:34.000Z","dependencies_parsed_at":"2022-09-05T18:41:16.073Z","dependency_job_id":null,"html_url":"https://github.com/ratson/pkg-dir-name","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpkg-dir-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpkg-dir-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpkg-dir-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpkg-dir-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/pkg-dir-name/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571289,"owners_count":20637317,"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":[],"created_at":"2024-12-03T20:15:25.077Z","updated_at":"2025-03-26T01:28:59.938Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkg-dir-name\n\nFind name from closest package.json or its directory name.\n\n## Installation\n\n```\nnpm install pkg-dir-name --save\n```\n\n## Usage\n\n\u003c!-- eslint-disable no-console,strict,promise/always-return,promise/catch-or-return --\u003e\n\n```js\nconst pkgDirName = require('pkg-dir-name')\n\npkgDirName().then(name =\u003e {\n  console.log(name) // =\u003e pkg-dir-name\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fpkg-dir-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fpkg-dir-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fpkg-dir-name/lists"}