3.2.0 • Published 9 months ago
@node-kit/monorepo v3.2.0
@node-kit/monorepo
Some simple utilities for nodejs
Function list
- some shared utilities: @node-kit/utils
- some shared extra utilities for nodejs build-in fs modules: @node-kit/extra.fs
- some shared extra utilities for nodejs build-in path modules: @node-kit/extra.path
- some shared extra utilities for nodejs build-in child_process modules: @node-kit/extra.cp
- find lerna workspace root: @node-kit/lerna-workspace-root
- find pnpm workspace root: @node-kit/pnpm-workspace-root
- find yarn workspace root: @node-kit/yarn-workspace-root
- find workspace root: workspace-root
- find monorepo root (alias of workspace-root): monorepo-root
- get workspace project list: workspace-projects
- get workspace project list: workspace-pkgs
- get lerna workspace info: @node-kit/lerna-workspace-info
- get pnpm workspace info: @node-kit/pnpm-workspace-info
- get yarn workspace info: @node-kit/yarn-workspace-info
- get workspace info: @node-kit/workspace-info
- find the package manager information: pm-info
- find which package manager used in the project: @node-kit/which-pm
- Detects what package manager was used for installation: what-pm
- Get the system lang: os-lang
Install
e.g: use workspace-root
# by pnpm
pnpm install workspace-root
# by npm
npm install -D workspace-root
# by yarn
yarn add workspace-root
Usage
import { workspaceRoot } from 'workspace-root'
workspaceRoot().then(path => {
console.log('The workspace root is: ', path) // /Users/user/path/of/package/root or null
})
Issues & Support
Please open an issue here.
License
3.0.0-beta.3
11 months ago
3.0.0-beta.2
11 months ago
3.0.0-beta.5
11 months ago
3.0.0-beta.4
11 months ago
3.2.0
9 months ago
3.1.1
10 months ago
3.1.0
11 months ago
3.0.0
11 months ago
2.3.0
1 year ago
2.5.0
1 year ago
2.4.0
1 year ago
2.5.1
1 year ago
2.2.1
1 year ago
2.2.0
1 year ago
2.0.0-beta.1
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.3.4
1 year ago
1.3.3
1 year ago
1.3.2
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.3.0-beta.1
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.0
1 year ago
1.0.0-alpha.8
1 year ago
1.0.0-alpha.7
1 year ago
1.0.0-alpha.6
1 year ago
1.0.0-alpha.4
1 year ago
1.0.0-alpha.3
1 year ago
1.0.0-alpha.2
1 year ago