require-from-app-root
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

require-from-app-root

Requires files from the app root.

Installation

npm install require-from-app-root --save

Usage

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;

Tests

npm install
npm test

Dependencies

  • @types/node: TypeScript definitions for Node.js
  • app-root-dir: Simple module to infer the root directory of the currently running node application

Dev Dependencies

  • 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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i require-from-app-root

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

2.64 kB

Total Files

4

Last publish

Collaborators

  • joge