1.3.4 • Published 1 year ago
@node-kit/workspace-root v1.3.4
@node-kit/workspace-root
A simple utility to get the workspace root
Install
# use pnpm
$ pnpm install -D @node-kit/workspace-root
# use yarn
$ yarn add -D @node-kit/workspace-root
# use npm
$ npm install -D @node-kit/workspace-root
Usage
- use
@node-kit/workspace-root
in async mode
import { workspaceRoot } from '@node-kit/workspace-root'
workspaceRoot().then(path => {
console.log('The workspace root is: ', path) // /Users/user/path/of/package/root or null
})
- use
@node-kit/workspace-root
in sync mode
import { workspaceRootSync } from '@node-kit/workspace-root'
console.log('The workspace root is: ', workspaceRootSync()) // /Users/user/path/of/package/root or null
Issues & Support
Please open an issue here.
License
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