1.0.1 • Published 10 years ago
get-parent-dir v1.0.1
get-parent-dir
Find the parent directory from a required module.
example
var findParent = require('get-parent-dir')
findParent.sync() // Returns the parent dir as a stringapi
findParent(callback)callscallbackwith found dir, ornullif unfound.findParent.sync()returns found dir ornullif unfound.
license
MIT