{"name":"image-source-loader","version":"0.1.0","description":"image source loader for webpack","repository":{"type":"git","url":"git+https://github.com/alibaba/rax.git"},"scripts":{"test":"mocha"},"keywords":["base64","image","webpack","loader","img","src","img src"],"main":"index.js","author":{"name":"wssgcg1213","email":"i@zeroling.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^2.11.0","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.1","mocha":"^2.5.3"},"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.1.0","_shasum":"6a249e003fd78b5fa580b3f314e8ed57580cb4e7","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.0","_npmUser":{"name":"zeroling","email":"wssgcg1213@qq.com"},"dist":{"shasum":"6a249e003fd78b5fa580b3f314e8ed57580cb4e7","tarball":"http://registry-npm.ywwl.com/image-source-loader/download/image-source-loader-0.1.0.tgz","integrity":"sha512-j72jmbOWmZYP3iyRMAeLGH3Kny1VRu1RPeaC5t4bDMsEMnSrk+TzQV42QeTDBKJgJVr19amRiX3KOOb7pbjQnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEle+H9zJuLx2lbpSahGlyPkEpfk0CWEtzAbcEO0kpODAiA1fVwAi9IX/Ddxpkjr7JHxlnBfg1PFpN8I9UvSyIzpTQ=="}],"size":1894,"noattachment":false,"key":"/image-source-loader/-/image-source-loader-0.1.0.tgz"},"maintainers":[{"name":"zeroling","email":"wssgcg1213@qq.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/image-source-loader-0.1.0.tgz_1489373063112_0.9371711786370724"},"directories":{},"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":1489373064995,"_cnpm_publish_time":1489373064995,"dist-tags":{"latest":"0.6.5"}}