Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gbu-linhntaim committed Dec 17, 2019
1 parent 94e450d commit 063f1e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ VARIABLE_2=yes
```

```javascript
// javascript
// .js file

import {install, env, getenv} from 'dotenv-packed'

// ** Basic: parsing, expanding, conversing variables

const {parsed} = install()

console.log(parsed) // output: (object) { ... , VARIABLE_1: 'value_1', VARIABLE_2: true, ... }
Expand All @@ -54,7 +53,6 @@ console.log(getenv('VARIABLE_1')) // output: (string) 'value_1'
console.log(getenv('VARIABLE_2')) // output: (boolean) true

// ** With extra configuration of `dotenv-conversion`

const {parsed} = install({
dotenvConversionConfig: {
specs: {
Expand Down Expand Up @@ -89,4 +87,4 @@ See:

- [**`dotenv`**](https://github.com/motdotla/dotenv)
- [**`dotenv-expand`**](https://github.com/motdotla/dotenv-expand)
- [**`dotenv-conversion`**](https://github.com/motdotla/dotenv-conversion)
- [**`dotenv-conversion`**](https://github.com/linhntaim/dotenv-conversion)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dotenv-packed",
"version": "1.0.0",
"version": "1.0.1",
"description": "Pack dotenv and some of its extensions into one.",
"main": "dist/main.js",
"scripts": {
Expand Down

0 comments on commit 063f1e3

Please sign in to comment.