# simpledot

> Just create your .env file and load all your environment variables.

Latest version **1.0.1** (published 2017-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install simpledot
pnpm add simpledot
yarn add simpledot
bun add simpledot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-07-31 |
| First published | 2017-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | @nievesjesus |
| Maintainers | nievesjesus |
| Keywords | environment, config, files |

## Links

- npm: https://www.npmjs.com/package/simpledot
- Repository: https://github.com/cucinestudios/simpledot
- Homepage: https://github.com/cucinestudios/simpledot#readme
- Issues: https://github.com/cucinestudios/simpledot/issues
- npm.io page: https://npm.io/package/simpledot

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-07-31
- 1.0.0 — 2017-07-31

## README

# simpledot
Just create your .env file and load all your environment variables.

## Install

```bash
npm install simpledot --save
```

## Usage

just require and use .

```javascript
var env = require('simpledot')
```

First create your `.env` file in the root directory of your project. 

Then add variables on new lines in the form of `NAME=VALUE`.

For example:

```dosini
DB_HOST=localhost
DB_USER=cucine
DB_PASS=imeasy
```

Now just use it.

### Example

`env.YOUR_VARIABLE` and that's the way.

```javascript
var env = require('simpledot')
db.connect({
  host: env.DB_HOST,
  username: env.DB_USER,
  password: env.DB_PASS
})
```

---
_Source: https://npm.io/package/simpledot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
