Skip to content

jarofghosts/get-parent-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

find the parent directory from a node module

Resources

License

Stars

Watchers

Forks

Packages

No packages published