New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

uniquenv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniquenv

Safe environment files

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Uniquenv · GitHub license npm version

Uniquenv is a tool for safe environment files.

  • Quick: You can use environment variables safely without using any password.
  • Unique: Your environment files are unique. Even if your files are stolen, they cannot be used on another computer.

Installation

npm install uniquenv

Usage

  • Create environment file:
const uniquenv = require('uniquenv');

const data = {
    host: uniquenv.input('Host: '),
    username: uniquenv.input('Username: '),
    password: uniquenv.password('Password: ')
};

const file = 'db.uniquenv';

uniquenv.create(file, data);
  • Use environment variables:
const uniquenv = require('uniquenv');

const file = 'db.uniquenv';

const db = uniquenv.parse(file);

console.log(
    db.host,
    db.username,
    db.password
);

License

MIT

Keywords

unique

FAQs

Package last updated on 13 Apr 2024

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