{"name":"better-require","version":"0.0.2","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.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"homepage":"https://github.com/olalonde/better-require","repository":{"type":"git","url":"git@github.com:olalonde/better-require.git"},"keywords":["require","json","yaml","yml","csv","xml","ini","six","coffee-script","coffeescript","coffee","cljs","clojure","dart","typescript","ts"],"author":{"name":"Olivier Lalonde","email":"olalonde@gmail.com"},"license":"BSD","dependencies":{"colors":"","require-json":"","require-yaml":"","require-csv":"","require-xml":"","require-ini":"","coffee-script":"","six":""},"devDependencies":{"clojure-script":"","Frog":"","require-typescript":""},"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","_id":"better-require@0.0.2","dist":{"shasum":"4cfeea4d35a5f0b432d0dd8e04b028273747335a","tarball":"http://registry-npm.ywwl.com/better-require/download/better-require-0.0.2.tgz","integrity":"sha512-NsmFeUmn8/P/M9ooX2shbyombFBD8UiP5qeeiX6zJdFqfNPEaS2JkwlASrz/8ElRB1Es893D8a6sI3sTrpUDpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWTk/twLjtykeomZOahBGoZAva9X3WhPKMyu4c/s/PbAiBNYzeeoD0J0xIoVGiZy/mRxrrD6LnkbpBGC/2vZpr7dw=="}],"size":4193,"noattachment":false,"key":"/better-require/-/better-require-0.0.2.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"olalonde","email":"olalonde@gmail.com"},"maintainers":[{"name":"olalonde","email":"olalonde@gmail.com"}],"directories":{},"publish_time":1351775946003,"_cnpm_publish_time":1351775946003,"dist-tags":{"latest":"0.0.3"}}