{"dist":{"shasum":"4cfeea4d35a5f0b432d0dd8e04b028273747335a","tarball":"https://registry.npmjs.org/better-require/-/better-require-0.0.2.tgz","integrity":"sha512-NsmFeUmn8/P/M9ooX2shbyombFBD8UiP5qeeiX6zJdFqfNPEaS2JkwlASrz/8ElRB1Es893D8a6sI3sTrpUDpQ==","signatures":[{"sig":"MEQCIBWTk/twLjtykeomZOahBGoZAva9X3WhPKMyu4c/s/PbAiBNYzeeoD0J0xIoVGiZy/mRxrrD6LnkbpBGC/2vZpr7dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"better-require","author":{"name":"Olivier Lalonde","email":"olalonde@gmail.com"},"readme":"Augments require() with support for multiple file formats.\n\n# Supported file formats\n \n**... which return a JSON represenation:**\n\n- [json](http://en.wikipedia.org/wiki/JSON)\n- [yaml](http://en.wikipedia.org/wiki/Yaml) (.yaml, .yml)\n- [csv](http://en.wikipedia.org/wiki/Comma-separated_values) \n- [xml](http://en.wikipedia.org/wiki/Xml)\n- [ini](http://en.wikipedia.org/wiki/INI_file)\n\n**... which return a Javascript module:**\n\n- [coffeescript](http://coffeescript.org) (.coffeescript, .coffee)\n- [six](https://github.com/matthewrobb/six)\n- [clojurescript](https://github.com/clojure/clojurescript) (.cljs) - not bundled\n- [dart](http://www.dartlang.org/) - not bundled\n- [typescript](http://www.typescriptlang.org/) (.ts) - not bundled\n\nBehind the scenes, this module adds handlers to [require.extensions](http://nodejs.org/api/all.html#all_require_extensions).\n\n# Install\n\n    npm install better-require\n\n# Usage\n\n```javascript\n/**\n * @param {String} optional - formats is a white space separated list of formats you would like require() to support.\n */\n// support all available extensions\nrequire('better-require')();\n// support a subset of extensions\nrequire('better-require')(formats);\n```\n\n# Example \n\n```javascript\nrequire('better-require')('json');\n\nvar config = require('./config.json');\nconsole.log(config);\n```\n\nEnable support for mutliple file types:\n\n```javascript\nrequire('better-require')('json yaml xml');\n\n// we can now require .xml, .yaml and .xml files!\nvar config = require('./config.yaml');\nconsole.log(config);\n```\n\n# Dependencies\n\n- [require-json](https://github.com/olalonde/require-json)\n- [require-yaml](https://github.com/olalonde/require-yaml)\n- [require-csv](https://github.com/olalonde/require-csv)\n- [require-xml](https://github.com/olalonde/require-xml)\n- [require-ini](https://github.com/olalonde/require-ini)\n- see package.json\n\n# Reference\n\nhttp://nodejs.org/api/all.html#all_require_extensions\n","license":"BSD","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"olalonde","email":"olalonde@gmail.com"},"homepage":"https://github.com/olalonde/better-require","keywords":["require","json","yaml","yml","csv","xml","ini","six","coffee-script","coffeescript","coffee","cljs","clojure","dart","typescript","ts"],"repository":{"url":"git@github.com:olalonde/better-require.git","type":"git"},"_npmVersion":"1.1.62","description":"require('better-require')('json yaml') lets you load JSON and YAML files using require syntax. For example: var config = require('./config.json'); Extensions available are: json, yaml.","maintainers":[{"name":"olalonde","email":"olalonde@gmail.com"}],"dependencies":{"six":"","colors":"","require-csv":"","require-ini":"","require-xml":"","require-json":"","require-yaml":"","coffee-script":""},"devDependencies":{"Frog":"","clojure-script":"","require-typescript":""},"_id":"better-require@0.0.2","version":"0.0.2"}