Socket
Socket
Sign inDemoInstall

parent-module

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -19,2 +19,6 @@ 'use strict';

if (typeof parentFilepath !== 'string') {
continue;
}
if (parentFilepath === filepath) {

@@ -21,0 +25,0 @@ seenVal = true;

6

package.json
{
"name": "parent-module",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get the path of the parent module",

@@ -42,6 +42,6 @@ "license": "MIT",

"devDependencies": {
"ava": "^1.0.1",
"ava": "^1.4.1",
"execa": "^1.0.0",
"xo": "^0.23.0"
"xo": "^0.24.0"
}
}

@@ -11,3 +11,3 @@ # parent-module [![Build Status](https://travis-ci.org/sindresorhus/parent-module.svg?branch=master)](https://travis-ci.org/sindresorhus/parent-module)

```
$ npm install --save parent-module
$ npm install parent-module
```

@@ -25,3 +25,3 @@

//=> '/Users/sindresorhus/dev/unicorn/foo.js'
}
};
```

@@ -32,2 +32,3 @@

const bar = require('./bar');
bar();

@@ -63,3 +64,3 @@ ```

console.log(readPkgUp.sync({cwd: path.dirname(parentModule())}).pkg);
//=> {name: 'chalk', version: '1.0.0', ...}
//=> {name: 'chalk', version: '1.0.0', …}
```

@@ -66,0 +67,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc