Parse a File into an Object using basic env syntax
This parses line by line so an invalid line will just be skipped
Optional
import { filesystem } from "@rjweb/utils"filesystem.env('./.env') // {K:'12'}filesystem.env('./.env.prod') // {E:'400'}filesystem.env('./invalid-env') // {} Copy
import { filesystem } from "@rjweb/utils"filesystem.env('./.env') // {K:'12'}filesystem.env('./.env.prod') // {E:'400'}filesystem.env('./invalid-env') // {}
1.10.4
nodejs
Parse a File into an Object using basic env syntax
This parses line by line so an invalid line will just be skipped