paqman

Perform tasks relative to your package.json, such as requiring

MIT 3 个版本
安装
npm install paqman
yarn add paqman
pnpm add paqman
bun add paqman
README


Interface

  • relativePath(somePath:String): Retrieve a path relative to the project root
  • relativeRequire(somePath:String): Require a module relative to the project root
  • installRelativeRequire(): Install relativeRequire globally as requireCwd
  • uninstallRelativeRequire(): Reverse ^^
  • packageJSON: A cached reference to your package.json's contents

Installation

npm i paqman -S

Verification

git clone https://github.com/jameswomack/paqman.git
cd paqman
npm i
npm test
npm run cover
版本列表
2.0.1 2016-04-28
2.0.0 2016-04-28
1.0.0 2015-05-23