An open API service indexing awesome lists of open source software.

https://github.com/lupcode/node-lup-root

Node module determines path to project root
https://github.com/lupcode/node-lup-root

Last synced: 3 months ago
JSON representation

Node module determines path to project root

Awesome Lists containing this project

README

        

![GitHub package.json version](https://img.shields.io/github/package-json/v/LupCode/node-lup-root)
![npm bundle size](https://img.shields.io/bundlephobia/min/lup-root)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/LupCode/node-lup-root/On%20Push)
![NPM](https://img.shields.io/npm/l/lup-root)

# lup-root
Node module that determines absolute path to project root and main file of project

## Example
```javascript
const {ROOT, MAIN} = require('lup-root');

console.log("Root directory: " + ROOT);
console.log("Main file: " + MAIN);
```