JSPM

  • Created
  • Published
  • Downloads 68
  • Score
    100M100P100Q57091F
  • License MIT

Determines absolute path to project root and main file

Package Exports

  • lup-root
  • lup-root/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lup-root) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitHub package.json version npm bundle size GitHub Workflow Status NPM

lup-root

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

Example

const {ROOT, MAIN} = require('lup-root');

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