1.0.0-alpha-6 • Published 7 years ago
find-parent-dir-from-bin v1.0.0-alpha-6
Find Parent Dir From Bin
Finds the absolute directory path of the app that is using your node module by stepping up to the parent dir of /node_modules
Currently synchronous only.
Installation
npm install find-parent-dir-from-bin --save
Usage
const findParentDir = require('find-parent-dir-from-bin');
// Returns either the absoblute dir or null if it can't be found
const parentDir = findParentDir();
1.0.0-alpha-6
7 years ago
1.0.0-alpha-5
7 years ago
1.0.0-alpha-4
7 years ago
1.0.0-alpha-3
7 years ago
1.0.0-alpha-2
7 years ago
1.0.0-alpha-1
7 years ago