[go: up one dir, main page]

Skip to content

saqqdy/node-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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