UNPKG

auto-config-loader

Version:

Find and load configuration from a package.json property, rc file, or CommonJS module.

6 lines (4 loc) 122 B
import ini from 'ini'; export function iniLoader<T>(_: string, content: string): T { return ini.parse(content) as T; }