Socket
Book a DemoInstallSign in
Socket

get-parent-dir

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-parent-dir

find parent dir from node module

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

parent

FAQs

Package last updated on 26 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts