0.0.8 • Published 6 months ago
@vulppi/env v0.0.8
Vulppi ENV
A simple library to parse environment files.
Usage
import { parseEnvToList, parseListToEnv } from '@vulppi/env'
const env = parseEnvToList(`
# This is a comment
KEY=VALUE
ANOTHER_KEY="Another value"
# This is another comment
`)
console.log(env)
const envString = parseListToEnv(env)
console.log(envString)
License
MIT