Requires files from the app root.
npm install require-from-app-root --save
import {requireFromAppRoot} from 'require-from-app-root';
// Requires the name from package.json file of the app root directory
const name = requireFromAppRoot('package.json').name;
npm install
npm test
- @types/node: TypeScript definitions for Node.js
- app-root-dir: Simple module to infer the root directory of the currently running node application
- rimraf: A deep deletion module for node (like
rm -rf
) - tslint: An extensible static analysis linter for the TypeScript language
- typescript: TypeScript is a language for application scale JavaScript development
MIT