@startupjs/babel-plugin-dotenv
Import .env files
Example
import { BASE_URL, STRIPE_PUBLIC_KEY } from '@env'
↓ ↓ ↓ ↓ ↓ ↓
const BASE_URL = 'http://example.com'
const STRIPE_PUBLIC_KEY = '000-000000-00'
License
MIT
Import .env files
import { BASE_URL, STRIPE_PUBLIC_KEY } from '@env'
↓ ↓ ↓ ↓ ↓ ↓
const BASE_URL = 'http://example.com'
const STRIPE_PUBLIC_KEY = '000-000000-00'
MIT
npm i @startupjs/babel-plugin-dotenv
384
0.55.8
MIT
4.43 kB
3