mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Fixed return type of `config()`, doc comments added * Returned the original author name
20 lines
302 B
TypeScript
20 lines
302 B
TypeScript
import dotenv = require('dotenv');
|
|
|
|
// typically, result will be an Object
|
|
let env = dotenv.config({
|
|
silent: true
|
|
});
|
|
|
|
// ... but it might also be `false`
|
|
let result = dotenv.config({
|
|
path: '.non-existing-env'
|
|
});
|
|
|
|
dotenv.config({
|
|
path: '.env'
|
|
});
|
|
|
|
dotenv.config({
|
|
encoding: 'utf8'
|
|
});
|