Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@everymundo/global-root-dir

Package Overview
Dependencies
Maintainers
19
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everymundo/global-root-dir - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "@everymundo/global-root-dir",
"version": "1.0.0",
"version": "1.1.0",
"description": "Sets a global variable variable __rootdir",

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

const fs = require('fs');
const { globalScope } = require('./lib/global-scope');
const setGlobalRootDir = (value = '') => {
if (globalScope.__rootdir) return;
const setGlobalRootDir = (value = '', configurable = false, overwrite = false) => {
if (globalScope.__rootdir && !overwrite) return globalScope.__rootdir;

@@ -11,5 +11,7 @@ if (!value) value = process.cwd();

Object.defineProperty(globalScope, '__rootdir', { value });
Object.defineProperty(globalScope, '__rootdir', { value, configurable });
return globalScope.__rootdir;
};
module.exports = { setGlobalRootDir };
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc