New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

as-a

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-a - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json

@@ -5,3 +5,3 @@ {

"main": "src/index.js",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {

@@ -8,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1",

@@ -9,2 +9,30 @@ # as-a

## Install
npm install --global as-a
## Use
Create a file in your user's home directory `.as-a.ini`
touch ~/.as-a.ini
Create separate sections for groups of environment settings. For example
```ini
; this is a test section
[test]
name=test
why=just because
```
Now you can run any command (with arguments) and add the section as environment variables.
$ npm run env | grep why
--- nothing ----
$ as-a test npm run env | grep why
why=just because
Recommended to keep private settings for DEV urls, secrets, etc.
### Small print

@@ -11,0 +39,0 @@

@@ -29,3 +29,3 @@ 'use strict'

const args = command.slice(1)
debug(`running "${prog}" with extra env keys`, Object.keys(extraEnv), command)
debug(`running "${prog}" with extra env keys`, Object.keys(extraEnv))

@@ -32,0 +32,0 @@ const proc = spawn(prog, args, spawnOptions)

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