https://github.com/bug3/uniquenv
Safe environment files
https://github.com/bug3/uniquenv
env environment environment-variables file security-tools unique
Last synced: 2 months ago
JSON representation
Safe environment files
- Host: GitHub
- URL: https://github.com/bug3/uniquenv
- Owner: bug3
- License: mit
- Created: 2023-04-06T20:31:24.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T18:36:41.000Z (about 2 years ago)
- Last Synced: 2026-04-08T07:07:41.990Z (3 months ago)
- Topics: env, environment, environment-variables, file, security-tools, unique
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/uniquenv
- Size: 11.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Uniquenv](https://github.com/bug3/uniquenv) · [](https://github.com/bug3/uniquenv/blob/master/LICENSE) [](https://www.npmjs.com/package/uniquenv)
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
```bash
npm install uniquenv
```
## Usage
- **Create environment file**:
```javascript
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**:
```javascript
const uniquenv = require('uniquenv');
const file = 'db.uniquenv';
const db = uniquenv.parse(file);
console.log(
db.host,
db.username,
db.password
);
```
## License
[MIT](https://choosealicense.com/licenses/mit/)