UNPKG

yardman

Version:

The one that maintains the development yard

15 lines (12 loc) 297 B
const { readFileSync } = require('fs'); const convertToArgv = require('./convert-to-argv'); function readRcfile(filename) { try { return convertToArgv( readFileSync(filename, { encoding: 'UTF-8' }).toString(), ); } catch (e) { return []; } } module.exports = readRcfile;