/paqman

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

Primary LanguageJavaScript



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