1.3.4 • Published 2 years 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
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.3.0-beta.1
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
1.0.0-alpha.8
2 years ago
1.0.0-alpha.7
2 years ago
1.0.0-alpha.6
2 years ago
1.0.0-alpha.4
2 years ago
1.0.0-alpha.3
2 years ago