{"_id":"trim-canvas","_rev":"5-554a5ffb302d96d469c10d856b15769e","name":"trim-canvas","description":"A tiny library for trimming whitespace from a canvas element","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"trim-canvas","version":"0.1.0","description":"A tiny library for trimming whitespace from a `canvas` element.","main":"build/index.js","devDependencies":{"babel-core":"^6.0.14","babel-loader":"^6.0.0","babel-preset-es2015":"^6.6.0","webpack":"^1.12.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","watch":"webpack --watch -d","produce":"webpack -p","lint":"standard index.es6"},"keywords":["canvas","trim","whitespace","remove","blanks","removeBlanks","remove-blanks"],"repository":{"type":"git","url":"git+https://github.com/agilgur5/trim-canvas.git"},"author":{"name":"Anton Gilgur"},"license":"Apache-2.0","gitHead":"8d7104a4fedc625a04f34106128dee796f4b7228","bugs":{"url":"https://github.com/agilgur5/trim-canvas/issues"},"homepage":"https://github.com/agilgur5/trim-canvas#readme","_id":"trim-canvas@0.1.0","_shasum":"94a2361609462b518a8e8301b0ff741ed36d4b94","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"agilgur5","email":"agilgur5@gmail.com"},"dist":{"shasum":"94a2361609462b518a8e8301b0ff741ed36d4b94","tarball":"https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.0.tgz","integrity":"sha512-6mkL/Y2A1iaggtBso5DUo0wX3QNwDxzDCStyJbcdadhlS2QcbwdJRsblLXc0z6LbDsFr9whA/ifYYKuO29cmtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGSgrBEq787VdksTUwbtszYzA/zixlBmqLdAqgkjIe0AiA6OrjneyJLs5FjenKeckIvV0PrI5TzsMOi9G6b59wWQQ=="}]},"maintainers":[{"name":"agilgur5","email":"agilgur5@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/trim-canvas-0.1.0.tgz_1472760870114_0.9312948251608759"}},"0.1.1":{"name":"trim-canvas","version":"0.1.1","description":"A tiny library for trimming whitespace from a canvas element","main":"build/index.js","devDependencies":{"babel-core":"^6.0.14","babel-loader":"^6.0.0","babel-preset-es2015":"^6.6.0","webpack":"^1.12.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","watch":"webpack --watch -d","produce":"webpack -p","lint":"standard index.es6"},"keywords":["canvas","trim","whitespace","remove","blanks","removeBlanks","remove-blanks"],"repository":{"type":"git","url":"git+https://github.com/agilgur5/trim-canvas.git"},"author":{"name":"Anton Gilgur"},"license":"Apache-2.0","gitHead":"04b29a7100fe9eaee59446281a83c5538ea9a84b","bugs":{"url":"https://github.com/agilgur5/trim-canvas/issues"},"homepage":"https://github.com/agilgur5/trim-canvas#readme","_id":"trim-canvas@0.1.1","_shasum":"5a74077b346d478c36b73b21668fc8b0e682feee","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"agilgur5","email":"agilgur5@gmail.com"},"dist":{"shasum":"5a74077b346d478c36b73b21668fc8b0e682feee","tarball":"https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.1.tgz","integrity":"sha512-EBwEXVqIaEW7ugEHvKQPEWTvdQwJ/rPJBqziQt1lpXW/YKp5J9gEPkwraLRS/K2KlsOhY0BeGAARmbqP7gM+8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB8K9WM8V3wQUnLYKc9678AHhnSSKXQTVfcoasKY2v2QIgHdo+KNgwtqz0d9ouEBXxQp3r7Ab+0XHwB77FOA8HKuQ="}]},"maintainers":[{"name":"agilgur5","email":"agilgur5@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/trim-canvas-0.1.1.tgz_1472762708428_0.8505313151981682"}},"0.1.2":{"name":"trim-canvas","version":"0.1.2","description":"A tiny library for trimming whitespace from a canvas element","main":"build/index.js","devDependencies":{"babel-core":"^6.0.14","babel-loader":"^6.0.0","babel-preset-es2015":"^6.6.0","webpack":"^1.12.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","watch":"webpack --watch -d","produce":"webpack -p","lint":"standard index.es6"},"keywords":["canvas","trim","whitespace","remove","blanks","removeBlanks","remove-blanks"],"repository":{"type":"git","url":"git+https://github.com/agilgur5/trim-canvas.git"},"author":{"name":"Anton Gilgur"},"license":"Apache-2.0","gitHead":"de86b0c5027fd06f2e7372c1d5279e77030923c5","bugs":{"url":"https://github.com/agilgur5/trim-canvas/issues"},"homepage":"https://github.com/agilgur5/trim-canvas#readme","_id":"trim-canvas@0.1.2","_shasum":"620457f5fecf564b521d35c5fcd4da58304d6e45","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"agilgur5","email":"agilgur5@gmail.com"},"dist":{"shasum":"620457f5fecf564b521d35c5fcd4da58304d6e45","tarball":"https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.2.tgz","integrity":"sha512-nd4Ga3iLFV94mdhW9JFMLpQbHUyCQuhFOD71PEAt1NjtMD5wbZctzhX8c3agHNybMR5zXD1XTGoIEWk995E6pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1HmbJmd2RLb2t8kh2w70w0c0A074mYQprDt45MW3XEAIgLNG+6ofyWz3AO1XVY+DUJ/oiOVPA9Yz/DX3Nik7nTpQ="}]},"maintainers":[{"name":"agilgur5","email":"agilgur5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trim-canvas-0.1.2.tgz_1495688848169_0.9751582227181643"}}},"readme":"# trim-canvas\n\n[![NPM](https://nodei.co/npm/trim-canvas.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/trim-canvas)\n\nA tiny (< 100 LoC) library for trimming whitespace from a `canvas` element with\nno dependencies.\n\n## Installation\n\n`npm i -S trim-canvas`\n\n## Usage\n\n```\nimport trimCanvas from 'trim-canvas'\n\nlet canvas = document.createElement('canvas')\n\n// do some drawing on it ...\n\ntrimCanvas(canvas)\n// now the whitespace has been trimmed\n```\n\nIf you don't want to mess with your existing canvas, then simply clone the\ncanvas element beforehand.\n\n`trim-canvas` returns the canvas element for easy chaining.\n\n## Credits\n\nCredits go to [@efc](https://github.com/efc) for writing a quick version of this\nin [this issue](https://github.com/szimek/signature_pad/issues/49#issue-29108215)\nand to the original [StackOverflow Answer](http://stackoverflow.com/a/12178531/3431180)\nthat was credited in that issue.\n","maintainers":[{"name":"agilgur5","email":"agilgur5@gmail.com"}],"time":{"modified":"2022-06-27T21:21:58.404Z","created":"2016-09-01T20:14:32.200Z","0.1.0":"2016-09-01T20:14:32.200Z","0.1.1":"2016-09-01T20:45:10.307Z","0.1.2":"2017-05-25T05:07:29.181Z"},"homepage":"https://github.com/agilgur5/trim-canvas#readme","keywords":["canvas","trim","whitespace","remove","blanks","removeBlanks","remove-blanks"],"repository":{"type":"git","url":"git+https://github.com/agilgur5/trim-canvas.git"},"author":{"name":"Anton Gilgur"},"bugs":{"url":"https://github.com/agilgur5/trim-canvas/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}