get-parent-dir

1.0.1 • Public • Published

get-parent-dir

Build Status npm install npm version js-standard-style License

Find the parent directory from a required module.

example

var findParent = require('get-parent-dir')
 
findParent.sync() // Returns the parent dir as a string

api

  • findParent(callback) calls callback with found dir, or null if unfound.
  • findParent.sync() returns found dir or null if unfound.

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i get-parent-dir

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jarofghosts