{"id":20875930,"url":"https://github.com/saqqdy/node-kit","last_synced_at":"2025-09-11T17:07:45.532Z","repository":{"id":65261736,"uuid":"588895445","full_name":"saqqdy/node-kit","owner":"saqqdy","description":"Some simple utilities for nodejs","archived":false,"fork":false,"pushed_at":"2024-11-26T10:35:14.000Z","size":899,"stargazers_count":23,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T07:01:51.894Z","etag":null,"topics":["monorepo","monorepo-root","node-kit","nodejs-tool","utilities","which-pm","workspace","workspace-info"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saqqdy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":["saqqdy"]}},"created_at":"2023-01-14T11:53:28.000Z","updated_at":"2025-02-27T07:56:39.000Z","dependencies_parsed_at":"2025-05-05T07:00:56.576Z","dependency_job_id":"52e0297d-0e73-4c1f-838f-785d85015770","html_url":"https://github.com/saqqdy/node-kit","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fnode-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fnode-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fnode-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fnode-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saqqdy","download_url":"https://codeload.github.com/saqqdy/node-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765925,"owners_count":21960819,"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":["monorepo","monorepo-root","node-kit","nodejs-tool","utilities","which-pm","workspace","workspace-info"],"created_at":"2024-11-18T06:49:09.705Z","updated_at":"2025-05-12T15:31:52.431Z","avatar_url":"https://github.com/saqqdy.png","language":"TypeScript","readme":"\u003cdiv style=\"text-align: center;\" align=\"center\"\u003e\n\n# @node-kit/monorepo\n\nSome simple utilities for nodejs\n\n[![NPM version][npm-image]][npm-url]\n[![Codacy Badge][codacy-image]][codacy-url]\n[![License][license-image]][license-url]\n\n[![Sonar][sonar-image]][sonar-url]\n\n\u003c/div\u003e\n\n## Function list\n\n- some shared utilities: [@node-kit/utils](https://github.com/saqqdy/node-kit/tree/master/packages/utils)\n- some shared extra utilities for nodejs build-in fs modules: [@node-kit/extra.fs](https://github.com/saqqdy/node-kit/tree/master/packages/extra/fs)\n- some shared extra utilities for nodejs build-in path modules: [@node-kit/extra.path](https://github.com/saqqdy/node-kit/tree/master/packages/extra/path)\n- some shared extra utilities for nodejs build-in child_process modules: [@node-kit/extra.cp](https://github.com/saqqdy/node-kit/tree/master/packages/extra/cp)\n- find lerna workspace root: [@node-kit/lerna-workspace-root](https://github.com/saqqdy/node-kit/tree/master/packages/lerna-workspace-root)\n- find pnpm workspace root: [@node-kit/pnpm-workspace-root](https://github.com/saqqdy/node-kit/tree/master/packages/pnpm-workspace-root)\n- find yarn workspace root: [@node-kit/yarn-workspace-root](https://github.com/saqqdy/node-kit/tree/master/packages/yarn-workspace-root)\n- find workspace root: [workspace-root](https://github.com/saqqdy/node-kit/tree/master/packages/workspace-root)\n- find monorepo root (alias of workspace-root): [monorepo-root](https://github.com/saqqdy/node-kit/tree/master/packages/monorepo-root)\n- get workspace project list: [workspace-projects](https://github.com/saqqdy/node-kit/tree/master/packages/workspace-projects)\n- get workspace project list: [workspace-pkgs](https://github.com/saqqdy/node-kit/tree/master/packages/workspace-pkgs)\n- get lerna workspace info: [@node-kit/lerna-workspace-info](https://github.com/saqqdy/node-kit/tree/master/packages/lerna-workspace-info)\n- get pnpm workspace info: [@node-kit/pnpm-workspace-info](https://github.com/saqqdy/node-kit/tree/master/packages/pnpm-workspace-info)\n- get yarn workspace info: [@node-kit/yarn-workspace-info](https://github.com/saqqdy/node-kit/tree/master/packages/yarn-workspace-info)\n- get workspace info: [@node-kit/workspace-info](https://github.com/saqqdy/node-kit/tree/master/packages/workspace-info)\n- find the package manager information: [pm-info](https://github.com/saqqdy/node-kit/tree/master/packages/pm-info)\n- find which package manager used in the project: [@node-kit/which-pm](https://github.com/saqqdy/node-kit/tree/master/packages/which-pm)\n- Detects what package manager was used for installation: [what-pm](https://github.com/saqqdy/node-kit/tree/master/packages/what-pm)\n- Get the system lang: [os-lang](https://github.com/saqqdy/node-kit/tree/master/packages/os-lang)\n\n## Install\n\ne.g: use `workspace-root`\n\n```shell\n# by pnpm\npnpm install workspace-root\n\n# by npm\nnpm install -D workspace-root\n\n# by yarn\nyarn add workspace-root\n```\n\n## Usage\n\n```js\nimport { workspaceRoot } from 'workspace-root'\n\nworkspaceRoot().then(path =\u003e {\n  console.log('The workspace root is: ', path) // /Users/user/path/of/package/root or null\n})\n```\n\n## Issues \u0026 Support\n\nPlease open an issue [here](https://github.com/saqqdy/node-kit/issues).\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/@node-kit/monorepo.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@node-kit/monorepo\n[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696\n[codacy-url]: https://www.codacy.com/gh/saqqdy/@node-kit/monorepo/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=saqqdy/@node-kit/monorepo\u0026utm_campaign=Badge_Grade\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE\n[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_node-kit\n[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_node-kit\n","funding_links":["https://github.com/sponsors/saqqdy"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaqqdy%2Fnode-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaqqdy%2Fnode-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaqqdy%2Fnode-kit/lists"}