Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

.env typescript

npm install dotenv;
 OR 
yarn add dotenv;


import * as dotenv from 'dotenv';

//inside your starter code, do this
...
...
dotenv.config();
...
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #typescript
ADD COMMENT
Topic
Name
8+1 =