envkey-shell

1.0.1 • Public • Published

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",
    }
}

Package Sidebar

Install

npm i envkey-shell

Weekly Downloads

26

Version

1.0.1

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • vespaiach