pax_global_header00006660000000000000000000000064126247044420014517gustar00rootroot0000000000000052 comment=1409807e8e32c4f54248ffe44624cd12c84a6202 json-loader-0.5.4/000077500000000000000000000000001262470444200137425ustar00rootroot00000000000000json-loader-0.5.4/README.md000066400000000000000000000005731262470444200152260ustar00rootroot00000000000000# json loader for webpack ## Installation `npm install json-loader` ## Usage ``` javascript var json = require("json!./file.json"); // => returns file.json content as json parsed object ``` Don't forget to polyfill `require` if you want to use it in node. See `webpack` documentation. ## License MIT (http://www.opensource.org/licenses/mit-license.php) json-loader-0.5.4/index.js000066400000000000000000000005311262470444200154060ustar00rootroot00000000000000/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ module.exports = function(source) { this.cacheable && this.cacheable(); var value = typeof source === "string" ? JSON.parse(source) : source; this.value = [value]; return "module.exports = " + JSON.stringify(value, undefined, "\t") + ";"; } json-loader-0.5.4/package.json000066400000000000000000000004001262470444200162220ustar00rootroot00000000000000{ "name": "json-loader", "version": "0.5.4", "author": "Tobias Koppers @sokra", "description": "json loader module for webpack", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/webpack/json-loader.git" } }