Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 3.83 KB

README.md

File metadata and controls

77 lines (57 loc) · 3.83 KB

@node-kit/monorepo

Some simple utilities for nodejs

NPM version Codacy Badge License

Sonar

Function list

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

MIT