Parse JSON/CSON/YAML file without specify the format.
$ npm install parse-config-file --save
const parse = require('parse-config-file') parse(data) // => return something
MIT © Kiko Beats.