{"id":24678703,"url":"https://github.com/contrast-security-oss/find-package-json","last_synced_at":"2026-05-19T02:37:24.892Z","repository":{"id":221566604,"uuid":"754748931","full_name":"Contrast-Security-OSS/find-package-json","owner":"Contrast-Security-OSS","description":"Look up through directories to find package.json","archived":false,"fork":false,"pushed_at":"2025-02-19T20:26:43.000Z","size":70,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-13T05:14:36.836Z","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/Contrast-Security-OSS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-08T17:37:54.000Z","updated_at":"2024-05-17T17:51:52.000Z","dependencies_parsed_at":"2024-05-17T18:51:12.287Z","dependency_job_id":"24b5623d-3e45-4124-a3ff-c93e396e2a48","html_url":"https://github.com/Contrast-Security-OSS/find-package-json","commit_stats":null,"previous_names":["contrast-security-oss/find-package-json"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Ffind-package-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Ffind-package-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Ffind-package-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Ffind-package-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Contrast-Security-OSS","download_url":"https://codeload.github.com/Contrast-Security-OSS/find-package-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244845963,"owners_count":20520055,"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":"2025-01-26T13:17:59.714Z","updated_at":"2026-05-19T02:37:24.863Z","avatar_url":"https://github.com/Contrast-Security-OSS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @contrast/find-package-json\n\nThis is derived from Sindre Sorhus' `find-up-simple` [package](https://www.npmjs.com/package/find-up-simple).\nIt has been modified so that it is CJS, lowers `engine` to `\u003e=16.9.1` in\n`package.json`, and only looks for `package.json` files.\n\nStarting in the current directory (by default) and continuing up the parent\ndirectory chain, find `package.json` and return the absolute path or undefined.\n\n## Install\n\n```sh\n$ npm install @contrast/find-package-json\n```\n\n\n## Usage\n\n```js\nconst { findPackageJsonAsync, findPackageJsonSync } = require('@contrast/find-package-json');\n\n(async () =\u003e {\n  console.log(await findPackageJsonAsync());\n  //=\u003e '/Users/contrast/find-package-json/package.json'\n})();\n\nconsole.log(findPackageJsonSync());\n//=\u003e '/Users/contrast/find-package-json/package.json'\n```\n\n## API\n\n- findPackageJsonAsync([options])\n- findPackageJsonSync([options])\n\n\n### options\n\nType: `object`\n- `cwd` (string) - Directory to start from. Default: `process.cwd()`\n- `stopAt` (string) - Absolute path to stop at. Default: `path.parse(cwd).root`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontrast-security-oss%2Ffind-package-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontrast-security-oss%2Ffind-package-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontrast-security-oss%2Ffind-package-json/lists"}