Open this example in the interactive library
Source code
import * as util from "node:util";
console.log(util.parseEnv("MODE=test\nLIMIT=3"));
Sample output
{ LIMIT: '3', MODE: 'test' }
Open this example in the interactive library
import * as util from "node:util";
console.log(util.parseEnv("MODE=test\nLIMIT=3"));
{ LIMIT: '3', MODE: 'test' }