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

envdotjs

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envdotjs - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

53

dist-es5/cli.js

@@ -8,55 +8,12 @@ #! /usr/bin/env node

var _subcommander = require('subcommander');
var _index = require('./index');
var _subcommander2 = _interopRequireDefault(_subcommander);
var _meow = require('meow');
var _index = require('./index');
var _meow2 = _interopRequireDefault(_meow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
_subcommander2.default.command('encrypt', {
desc: 'Encrypts a env.js file'
}).option('key', {
abbr: 'k',
desc: 'Set an encryption key, defaults to contents of envdotjs-key file in root'
}).option('input', {
abbr: 'i',
desc: 'Path to your .js file',
default: 'env.js'
}).option('output', {
abbr: 'o',
desc: 'Path to the encrypted output, defaults to {path}.enc'
});
_subcommander2.default.command('unencrypt', {
desc: 'Unencrypts a file'
}).option('key', {
abbr: 'k',
desc: 'Set an encryption key, defaults to contents of envdotjs-key file in root'
}).option('input', {
abbr: 'i',
desc: 'Path to your .enc file',
default: 'env.js.enc'
}).option('output', {
abbr: 'o',
desc: 'Path to the unencrypted output, defaults to {path} sans .enc'
});
_subcommander2.default.command('change-key', {
desc: 'Reencrypts with the supplied key and creates a new envdotjs-key file'
}).option('input', {
abbr: 'i',
desc: 'Path to your .js file',
default: 'env.js'
}).option('output', {
abbr: 'o',
desc: 'Path to the encrypted output, defaults to {path}.enc'
}).option('prev-key', {
desc: 'Supply the previous key to unencrypt the .enc file first'
}).option('key', {
abbr: 'k',
desc: 'The new key to be used'
});
var cli = meow('\n Usage\n $ envdotjs\n\n Options\n --key, -k Set an encryption key, defaults to contents of envdotjs-key file in root\n --path, -p Path to your .js file, defaults to env.js\n --output, -o Path to the encrypted output, defaults to {path}.enc\n\t\t--unencrypt, -u Unencrypts a file, defaults to env.js.enc\n\t\t--change-key, -c Reencrypts and creates a new envdotjs-key file with provided string\n\n Examples\n $ envdotjs --key my-key\n', {
//import sc from 'subcommander'
var cli = (0, _meow2.default)('\n Usage\n $ envdotjs\n\n Options\n --key, -k Set an encryption key, defaults to contents of envdotjs-key file in root\n --path, -p Path to your .js file, defaults to env.js\n --output, -o Path to the encrypted output, defaults to {path}.enc\n\t\t--unencrypt, -u Unencrypts a file, defaults to env.js.enc\n\t\t--change-key, -c Reencrypts and creates a new envdotjs-key file with provided string\n\n Examples\n $ envdotjs --key my-key\n', {
flags: {

@@ -63,0 +20,0 @@ key: {

#! /usr/bin/env node
import _extends from 'babel-runtime/helpers/extends';
import sc from 'subcommander';
//import sc from 'subcommander'
import { encrypt, unencrypt } from './index';
import meow from 'meow';
sc.command(`encrypt`, {
desc: `Encrypts a env.js file`
}).option(`key`, {
abbr: `k`,
desc: `Set an encryption key, defaults to contents of envdotjs-key file in root`
}).option(`input`, {
abbr: `i`,
desc: `Path to your .js file`,
default: `env.js`
}).option(`output`, {
abbr: `o`,
desc: `Path to the encrypted output, defaults to {path}.enc`
});
sc.command(`unencrypt`, {
desc: `Unencrypts a file`
}).option(`key`, {
abbr: `k`,
desc: `Set an encryption key, defaults to contents of envdotjs-key file in root`
}).option(`input`, {
abbr: `i`,
desc: `Path to your .enc file`,
default: `env.js.enc`
}).option(`output`, {
abbr: `o`,
desc: `Path to the unencrypted output, defaults to {path} sans .enc`
});
sc.command(`change-key`, {
desc: `Reencrypts with the supplied key and creates a new envdotjs-key file`
}).option(`input`, {
abbr: `i`,
desc: `Path to your .js file`,
default: `env.js`
}).option(`output`, {
abbr: `o`,
desc: `Path to the encrypted output, defaults to {path}.enc`
}).option(`prev-key`, {
desc: `Supply the previous key to unencrypt the .enc file first`
}).option(`key`, {
abbr: `k`,
desc: `The new key to be used`
});
const cli = meow(`

@@ -52,0 +9,0 @@ Usage

4

package.json
{
"name": "envdotjs",
"version": "1.1.6",
"version": "1.1.7",
"keywords": [

@@ -30,3 +30,3 @@ "envdotjs",

"relink": "npm unlink && npm run build && npm link",
"test": "cross-env BABEL_ENV=es5 mocha --require babel-core/register",
"test": "npm run build && cross-env BABEL_ENV=es5 mocha --require babel-core/register",
"travis": "opn https://travis-ci.org/escaladesports/envdotjs/branches"

@@ -33,0 +33,0 @@ },

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