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

envkey-shell

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envkey-shell

Import and execute envkey library from shell command

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Star Issue

envkey-shell

The envkey-node library doesn't support a shell command, so when using envkey with next.js, we have to import envkey library in a custom server file.

This script is about creating a command shell for envkey library and allowing to use that command in npm script.

Usage

Install with npm or yarn

npm install envkey-shell --save
yarn install envkey-shell -S

Create a .env file and add ENVKEY

// This is a sample key. Please use your own key.
ENVKEY=Gssszx5zGsdEVS4osdf112-779ifSm9ki9Yb8123

Examples:

Using with next.js.

package.json
{
    "script": {
        "start": "envkey-shell next start"
    }
}

Using with vue.js.

package.json
{
    "scripts": {
        "serve": "envkey-shell vue-cli-service serve",
    }
}

Using with react-scripts.

package.json
{
    "scripts": {
        "serve": "envkey-shell react-scripts start",
    }
}

Keywords

FAQs

Package last updated on 19 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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