Socket
Socket
Sign inDemoInstall

closest-root

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "closest-root",
"version": "1.0.1",
"version": "1.0.2",
"description": "Allows the user to locate the root directory, of a Node application set up using npm, from a specified directory by traversing upwards until the root is located.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,3 +28,3 @@ # closest-root

```javascript
let rootDirectory = require('closest-root')(__dirname)
const rootDirectory = require('closest-root')(__dirname)

@@ -31,0 +31,0 @@ /* This will output the closest root directory from the current file, as

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc