{"name":"image-source-loader","version":"0.5.4","description":"Image source loader for webpack","license":"MIT","repository":{"type":"git","url":"git+https://github.com/alibaba/rax.git"},"engines":{"npm":">=3.0.0"},"keywords":["base64","image","webpack","loader","img","src"],"main":"lib/index.js","dependencies":{"image-size":"^0.5.1"},"bugs":{"url":"https://github.com/alibaba/rax/issues"},"homepage":"https://github.com/alibaba/rax#readme","_id":"image-source-loader@0.5.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"yacheng","email":"narutosun2@gmail.com"},"dist":{"integrity":"sha512-ivE0ELB6JBvU37K+Suv0IeRE+AAF/uYioCYCtZkrvygWV+5PqonRD2yx3weWFnz4Xq0pd3gellob7UVoMYn4LA==","shasum":"12c5caa3120269feeea6c94624ae96570b10fa37","tarball":"http://registry-npm.ywwl.com/image-source-loader/download/image-source-loader-0.5.4.tgz","fileCount":8,"unpackedSize":8041,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz6OSWNpXvj8AdX9cuq+64rDN4SUzx4xvxTKgSaV/yyQIgW8mTZQiry00PV60K/99qDxSUYr+8k1UHYcx9hoC+HjQ="}],"size":2632,"noattachment":false,"key":"/image-source-loader/-/image-source-loader-0.5.4.tgz"},"maintainers":[{"email":"csf178@gmail.com","name":"wintercn"},{"email":"narutosun2@gmail.com","name":"yacheng"},{"email":"yuanyan.cao@gmail.com","name":"yuanyan"},{"email":"wssgcg1213@qq.com","name":"zeroling"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image-source-loader_0.5.4_1519961305083_0.24943816567693622"},"_hasShrinkwrap":false,"readme":"# image source loader for webpack\n\nA source is an object contains: base64 uri, width and height of a image. eg: `{ uri: 'data:image/png;base64, iVBxxxx...', width: 2, height: 3 }`\n\nIf your looking for a loader that simple encodes as base64 try [base64-loader](https://github.com/antelle/base64-loader)\n\n## Installation\n\n`npm install image-source-loader`\n\n## Usage\n\n``` javascript\nconst source = require(\"image-source!./1x1.png\");\n\n// source => {\n//   uri: \"data:image/png;base64,iVBORw0KGgoAAAANS...\",\n//   width: 1,\n//   height: 1\n// }\n```\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n## Support\n\nSee ./mimes.json for currently supported extensions/mimes.  \nCreate a Pull Request if you need more added.  \n","publish_time":1519961305132,"_cnpm_publish_time":1519961305132,"dist-tags":{"latest":"0.6.5"}}