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

bare-env

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-env - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

12

index.js

@@ -1,6 +0,6 @@

const binding = require('./binding')
const os = require('bare-os')
module.exports = new Proxy(Object.create(null), {
ownKeys (target) {
return binding.getKeys()
return os.getEnvKeys()
},

@@ -11,3 +11,3 @@

return binding.get(property)
return os.getEnv(property)
},

@@ -18,3 +18,3 @@

return binding.has(property)
return os.hasEnv(property)
},

@@ -33,3 +33,3 @@

binding.set(property, value)
os.setEnv(property, value)

@@ -42,3 +42,3 @@ return true

binding.unset(property)
os.unsetEnv(property)
},

@@ -45,0 +45,0 @@

{
"name": "bare-env",
"version": "2.0.0",
"version": "2.1.0",
"description": "Environment variable support for JavaScript",
"main": "index.js",
"files": [
"index.js",
"binding.c",
"binding.js",
"CMakeLists.txt",
"prebuilds"
"index.js"
],

@@ -26,2 +22,5 @@ "scripts": {

"homepage": "https://github.com/holepunchto/bare-env#readme",
"dependencies": {
"bare-os": "^2.1.0"
},
"devDependencies": {

@@ -28,0 +27,0 @@ "brittle": "^3.2.1",

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