You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.0 KiB
JSON
79 lines
3.0 KiB
JSON
7 years ago
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "png-js@>=0.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "png-js",
|
||
|
"name": "png-js",
|
||
|
"rawSpec": ">=0.1.0",
|
||
|
"spec": ">=0.1.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Users/MB/git/pdfkit"
|
||
|
]
|
||
|
],
|
||
|
"_from": "png-js@>=0.1.0",
|
||
|
"_id": "png-js@0.1.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/png-js",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "png-js@>=0.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "png-js",
|
||
|
"name": "png-js",
|
||
|
"rawSpec": ">=0.1.0",
|
||
|
"spec": ">=0.1.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/png-js/-/png-js-0.1.1.tgz",
|
||
|
"_shasum": "1cc7c212303acabe74263ec3ac78009580242d93",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "png-js@>=0.1.0",
|
||
|
"_where": "/Users/MB/git/pdfkit",
|
||
|
"author": {
|
||
|
"name": "Devon Govett",
|
||
|
"email": "devongovett@gmail.com",
|
||
|
"url": "http://badassjs.com/"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "http://github.com/devongovett/png.js/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "A PNG decoder in CoffeeScript",
|
||
|
"devDependencies": {
|
||
|
"coffee-script": ">=1.0.1"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "1cc7c212303acabe74263ec3ac78009580242d93",
|
||
|
"tarball": "https://registry.npmjs.org/png-js/-/png-js-0.1.1.tgz"
|
||
|
},
|
||
|
"engine": [
|
||
|
"node >= v0.6.0"
|
||
|
],
|
||
|
"homepage": "https://github.com/devongovett/png.js#readme",
|
||
|
"main": "png-node.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "devongovett",
|
||
|
"email": "devongovett@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "png-js",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "png.js\n======\nA PNG decoder in JS for the canvas element or Node.js.\n\n## Browser Usage\nSimply include png.js and zlib.js on your HTML page, create a canvas element, and call PNG.load to load an image.\n\n <canvas></canvas>\n <script src=\"zlib.js\"></script>\n <script src=\"png.js\"></script>\n <script>\n var canvas = document.getElementsByTagName('canvas')[0];\n PNG.load('some.png', canvas);\n </script>\n \nThe source code for the browser version resides in `png.js` and also supports loading and displaying animated PNGs.\n \n## Node.js Usage\nInstall the module using npm\n\n sudo npm install png-js\n \nRequire the module and decode a PNG\n\n var PNG = require('png-js');\n PNG.decode('some.png', function(pixels) {\n // pixels is a 1d array of decoded pixel data\n });\n \nYou can also call `PNG.load` if you want to load the PNG (but not decode the pixels) synchronously. If you already\nhave the PNG data in a buffer, simply use `new PNG(buffer)`. In both of these cases, you need to call `png.decode`\nyourself which passes your callback the decoded pixels as a buffer. If you already have a buffer you want the pixels\ncopied to, call `copyToImageData` with your buffer and the decoded pixels as returned from `decodePixels`.",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/devongovett/png.js.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"prepublish": "coffee -c png-node.coffee"
|
||
|
},
|
||
|
"version": "0.1.1"
|
||
|
}
|