npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

env-lock

v0.0.7

Published

Save your .env files securely

Downloads

4

Readme

env-lock

Downloads/week Version

A CLI to manage your .env files

Usage

$ env-lock save .env.local myApp 
The env for myApp has been successfully added to the database!

$ env-lock view myApp 
CLIENT_ID=1234567890
CLIENT_SECRET=abcdefg

$ env-lock view myApp --hide
CLIENT_ID=**********
CLIENT_SECRET=*******

$ env-lock list 
myApp

$ env-lock replace myApp .env.development
Replacing..
Successfully deleted myApp
The env for myApp has been successfully added to the database!
Succcessfully replaced myApp!

$ env-lock dbpath
/opt/homebrew/lib/node_modules/env-lock/dist/utils/envStore.sqlite

$ env-lock backup ~/Documents/env
Backed up database store to /Users/xxxxx/Documents/env/envStore.sqlite

$ env-lock restore ~/Documents/env
Backed up database store to /opt/homebrew/lib/node_modules/env-lock/dist/utils/envStore.sqlite

Commands

env-lock backup [PATH]

Backup the database store

USAGE
  $ env-lock backup [PATH]

ARGUMENTS
  PATH  backup path

DESCRIPTION
  Backup the database store

EXAMPLES
  $ env-lock backup

See code: dist/commands/backup/index.ts

env-lock dbpath

Create a database store

USAGE
  $ env-lock dbpath

DESCRIPTION
  Create a database store

EXAMPLES
  $ env-lock dbpath

See code: dist/commands/dbpath/index.ts

env-lock delete [NAME]

Delete an env from the store

USAGE
  $ env-lock delete [NAME]

ARGUMENTS
  NAME  env to delete

DESCRIPTION
  Delete an env from the store

EXAMPLES
  $ env-lock delete

See code: dist/commands/delete/index.ts

env-lock deletedb

Delete the database store

USAGE
  $ env-lock deletedb

DESCRIPTION
  Delete the database store

EXAMPLES
  $ env-lock deletedb

See code: dist/commands/deletedb/index.ts

env-lock help [COMMANDS]

Display help for env-lock.

USAGE
  $ env-lock help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for env-lock.

See code: @oclif/plugin-help

env-lock init

Create a database store

USAGE
  $ env-lock init

DESCRIPTION
  Create a database store

EXAMPLES
  $ env-lock init

See code: dist/commands/init/index.ts

env-lock list

List all the saved envs

USAGE
  $ env-lock list

DESCRIPTION
  List all the saved envs

EXAMPLES
  $ env-lock list

See code: dist/commands/list/index.ts

env-lock replace [NAME] [FILE]

replaces an existing env entry with a new env file

USAGE
  $ env-lock replace [NAME] [FILE]

ARGUMENTS
  NAME  name of the project
  FILE  file to read

DESCRIPTION
  replaces an existing env entry with a new env file

EXAMPLES
  $ env-lock replace

See code: dist/commands/replace/index.ts

env-lock restore [BACKUPPATH]

Use a backup as the new database store

USAGE
  $ env-lock restore [BACKUPPATH]

ARGUMENTS
  BACKUPPATH  backup path

DESCRIPTION
  Use a backup as the new database store

EXAMPLES
  $ env-lock restore

See code: dist/commands/restore/index.ts

env-lock save [FILE] [NAME]

Save an env file

USAGE
  $ env-lock save [FILE] [NAME]

ARGUMENTS
  FILE  file to read
  NAME  name of the project

DESCRIPTION
  Save an env file

EXAMPLES
  $ env-lock save

See code: dist/commands/save/index.ts

env-lock secretkey

view the encryption key for the stored envs

USAGE
  $ env-lock secretkey

DESCRIPTION
  view the encryption key for the stored envs

EXAMPLES
  $ env-lock secretkey

See code: dist/commands/secretkey/index.ts

env-lock view [NAME]

retrieve the values of a saved env entry

USAGE
  $ env-lock view [NAME] [-h]

ARGUMENTS
  NAME  Name of env to be retreived.

FLAGS
  -h, --hide

DESCRIPTION
  retrieve the values of a saved env entry

EXAMPLES
  $ env-lock view