UNPKG

@puls-atlas/cli

Version:

The Puls Atlas CLI tool for managing Atlas projects

11 lines 259 B
import fs from 'fs'; export default path => { const env = {}; const file = fs.readFileSync(path, 'utf-8'); const lines = file.split('\n'); for (const line of lines) { const [key, value] = line.split('='); env[key] = value; } return env; };