This package has been deprecated

Author message:

This package has been deprecated and is no longer maintained. Please use workspace-root.

@node-kit/workspace-root
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

@node-kit/workspace-root

A simple utility to get the workspace root

NPM version Codacy Badge Test coverage License

Sonar

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

  1. 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
})
  1. 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

MIT

Package Sidebar

Install

npm i @node-kit/workspace-root

Weekly Downloads

0

Version

1.3.4

License

MIT

Unpacked Size

7.22 kB

Total Files

6

Last publish

Collaborators

  • saqqdy