{"_id":"@rgba-image/copy","_rev":"4-6c2454a81832985686a75c99ab79663f","name":"@rgba-image/copy","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@rgba-image/copy","version":"0.1.0","description":"Copy from one image to another","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"tsc && mocha ./dist/test","coverage":"tsc && nyc --reporter=html --reporter=text mocha ./dist/test"},"nyc":{"exclude":["./dist/test"]},"repository":{"type":"git","url":"git+https://github.com/rgba-image/copy.git"},"keywords":[],"author":{"name":"Nik Coughlin","email":"nrkn.com@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/rgba-image/copy/issues"},"homepage":"https://github.com/rgba-image/copy#readme","dependencies":{"@rgba-image/common":"^0.1.0"},"devDependencies":{"@rgba-image/create-image":"^0.1.1","@types/mocha":"^5.2.5","@types/node":"^10.12.1"},"gitHead":"98960d961e4b305a6d439a8c424131ea0fda42c3","_id":"@rgba-image/copy@0.1.0","_npmVersion":"6.0.1","_nodeVersion":"10.11.0","_npmUser":{"name":"nrkn","email":"nrkn.com@gmail.com"},"dist":{"integrity":"sha512-4R2kYLEjy2p7D5wP8F4/GG6XoYm6T2B83TFKtsYFz7FcIAlqUUR7V4j8F5y33haQK/sUxjNUiWIro86kKGTf2g==","shasum":"ac11b76332cc4bc89d326cd5dab0a5b79cc0e5ad","tarball":"https://registry.npmjs.org/@rgba-image/copy/-/copy-0.1.0.tgz","fileCount":15,"unpackedSize":18983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2kByCRA9TVsSAnZWagAANYEP/3pJG7lAIaNlnPKJEKDT\n7sRTiUhqQmU0F9XdjcFet0dZcMNVyzGOvgS8rUfxzBunk9MtV0uoCuoPNm9N\nPU9EH3a6Mx9vbvIsyaYHQ+gTr2g8lgmMPXQbC5iYBJCgiNFEEzZwYeGRZK8e\nIC8OmZDTs+tYRNHkZp4ZoCy8P3QJh0bpZJEQCaXwGRaFJ6IKS1TwKTYYbxer\nW1njzcW1hFcFPCwpJcRmB8R08ht30NI43+MpE7g70q8Ta/NDOjqeAJ12dnUp\n6ttMyt123/r/1zsX1cCMeuqkKwOeOgfbDlw7gyaJn53NqOtlY8T0VulW9t2y\nyTrPTOUJlVTTgz7XGtKIiRyS4+f/k7XLMSOpRnKZiyKme0NB3wPUlynsg8TQ\nxsjgZs837GfPbQTXCHG6PTIza3YZotf6wjkahXGBmpRg6Bz3Q9kgnFU4KrdB\nyO6yI9esLK29RnY3HuBEiVZCaEBziGzUHmcU4GofJTsZ3mRIRt2H1z+BZ1ww\nA62Bd27Ouov301gWxJnGySUqsQKMguMEDN0fzcP7BGWAvPPoIK4fenqgzbxI\nOObODPnbXig4liAl0JvOFcm8gMd1sX2HQ1vM52vdIc9kX8/UA5P0orvOJeoP\niqBSmLtPEDCEQ8ls4uV8d5ix60Y5Xt73RkMl0OPZ1CAdFpo7SHinRy9CbNLb\naTU0\r\n=h0Eu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3pZvChQfGQkDamuE2R2KFLo4yhZwb4h92ODCxGyVwUAiEA0iK/QU5HxOjjioi16K4daHJsKrltQHmEdSLU/33dbRw="}]},"maintainers":[{"name":"nrkn","email":"nrkn.com@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/copy_0.1.0_1541030001689_0.012069994527263539"},"_hasShrinkwrap":false},"0.1.1":{"name":"@rgba-image/copy","version":"0.1.1","description":"Copy from one image to another","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"tsc && mocha ./dist/test","coverage":"tsc && nyc --reporter=html --reporter=text mocha ./dist/test"},"nyc":{"exclude":["./dist/test"]},"repository":{"type":"git","url":"git+https://github.com/rgba-image/copy.git"},"keywords":[],"author":{"name":"Nik Coughlin","email":"nrkn.com@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/rgba-image/copy/issues"},"homepage":"https://github.com/rgba-image/copy#readme","dependencies":{"@rgba-image/common":"^0.1.0"},"devDependencies":{"@rgba-image/create-image":"^0.1.1","@types/mocha":"^5.2.5","@types/node":"^10.12.1"},"gitHead":"8be538ede01cf276622535fba7e708a0e2684c4c","_id":"@rgba-image/copy@0.1.1","_npmVersion":"6.0.1","_nodeVersion":"10.11.0","_npmUser":{"name":"nrkn","email":"nrkn.com@gmail.com"},"dist":{"integrity":"sha512-qUW4ZSCfhYN/eu8h80Rmh2yQ6P+ibqLFHmaOe9MMQP3ewk1RUg41FKxs/TynVOJFszcXZMAHFwsjDMLO+D+UGg==","shasum":"b50b920bc76ffc54cf67244647f6b4eb836f526a","tarball":"https://registry.npmjs.org/@rgba-image/copy/-/copy-0.1.1.tgz","fileCount":15,"unpackedSize":18975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2or0CRA9TVsSAnZWagAAtAUP+wbOMU6Z6o5j5pix/H1M\nvbMROBNsUMb8upfC/CEc8BUllDdATEgExLnH7JbWLn53HuhxwFxepLENHvre\nDeCLuW8HJQreD4PN58OpDdngV+2yzlDNb8++F7CXa/qAIB0OHj1bFwY4yKd3\nfnFSWjk1u5sGM4DVCKvalt5ShbG8M5saJ4wwUnoM5hKpusG/0cA39zWJJt4P\nembIPhrRpPCGfM4cowgGQ2JYxrRMUns1D1LCSLfLUiwrLoxRVZJ4R3hyrgfp\nI7/Qmv7MvEnP3oGCtrOihJtkNwlWeuN634dD55/bJVUvLrC/nsyjrpqFQr2x\nP7tqhBnCLcNpLB7sEVXfbUchpY+p9swT6XyhGXoIATP7zhaVmKC2MsIL4SnL\neo8+loNHlFqbEOGpc+1RRTkmrFzYZvicpgkiNGauP0CBLsLwpInuhqM2c/WN\nsOD8uBPkxW0T315zu8r5xxcoRlaLPBcv/n7uJvh9Ka+Xx5OKpC28wTMDp4rp\n2uAQG0pIAYe5ezAZN7dkv4ddGm0NshxNMXteif4IF6drZbTM/njsohrUufiF\nWkQ4szdoMABakYzrcAYHVDMFUGO/E8EShl/JWlp7hz372zY9FFe4/PNpJuMb\nYBRh6922ycLaROw/vxqHF/t9ZLFRnuOUohDhn5oYj67Jr3YEftSAa5/Pl9Uw\nRj34\r\n=tf1v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmXuwuMco2bc9uCs7Mf3a+vih9/ZcUBCX5+G5L8dtAGwIhAOgqpJY+FRB2lJdDo71OEL3s6Opxz3sbjj/Tc3wro3Zz"}]},"maintainers":[{"name":"nrkn","email":"nrkn.com@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/copy_0.1.1_1541049075977_0.43120328144316566"},"_hasShrinkwrap":false},"0.1.2":{"name":"@rgba-image/copy","version":"0.1.2","description":"Copy from one image to another","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"tsc && mocha ./dist/test","coverage":"tsc && nyc --reporter=html --reporter=text mocha ./dist/test"},"nyc":{"exclude":["./dist/test"]},"repository":{"type":"git","url":"git+https://github.com/rgba-image/copy.git"},"keywords":[],"author":{"name":"Nik Coughlin","email":"nrkn.com@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/rgba-image/copy/issues"},"homepage":"https://github.com/rgba-image/copy#readme","dependencies":{"@rgba-image/common":"^0.1.0"},"devDependencies":{"@rgba-image/create-image":"^0.1.1","@rgba-image/png":"^0.1.0","@types/mocha":"^5.2.5","@types/node":"^10.12.1"},"gitHead":"42909e261edd6a08759a9d0dd0842e58d6b3d868","_id":"@rgba-image/copy@0.1.2","_npmVersion":"6.0.1","_nodeVersion":"10.11.0","_npmUser":{"name":"nrkn","email":"nrkn.com@gmail.com"},"dist":{"integrity":"sha512-N1t4aw0lvvGSToyoy6IgYOEEDDGEgFCL1ZP8PNfcT9f0EjmXBD+AbrJhMy4gTyq7kcxpQM3vO1fKXl0qGMUyEA==","shasum":"406049e390dc52c046b3fc4d95abd96d745882d2","tarball":"https://registry.npmjs.org/@rgba-image/copy/-/copy-0.1.2.tgz","fileCount":15,"unpackedSize":22634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb23ftCRA9TVsSAnZWagAA3ikP/iRH4Hp6cn5AJbR3XTgI\nGP6BujYNAIWNKeVH99mLcUPM/uXUZKdWqtmxvDIoHvxaVvkC2kdKuvyOgr+G\niBZrxH572Hsy5wxDwgjT2kPTlR4DavTdjhxEEefTBHWzN95uOHiEVqwFK9xw\n+goL+P/taI9YKPvA4v52VYnkuwS+wx+r/04WzBiyaqni7oIVl7YsIIDNhSBm\nSLjIOQDebPne5VZ1ZbnseXvnY3C4FYckSlKvJMVhsijAo4fg1H0+PplqInso\noO6iFIVmAA8WAiNZcfVnys65ZdKNzj65a+1a8BOgL1phJAauFIAQlGmxB4gY\n8oXoxN0Vqi6dkZzwpxYI/OZBLIqCGNLLmEe88nmSHeGIRSVd+gMqysslSGO9\ncYQgRY6JNXWN8yAwzxRLldJmS3ibF+GYum9CTTU1khkexGACMvNb1X/9CtzY\nrU+TsQxanpYHgtnVP/SGr+ggJPqfRSfIVQ3OOWJxiP1cEzstK1BC4Rb87mNc\niVgCzQnVdLBRoNyYZVToCiEBpf6GcckfcU3LRb8r4P0LVHhMjZzWxF/MR6g0\n3U8dLcnMRu1ILMvDihotXeZUerWV3kwf/Rs7tkLp9n303ae7v1th2KRB43cp\nHDu3ayc3iig0Z92SWccm23rOz+Mbjw6r2VwH4DIri3AJlzOic5pFJ48k1fAo\nhq/9\r\n=zAAJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtRehdAFKnkaUYqUo09t1wNgyqVNfv3HdXJsUh7UKUigIhANry2M/wimwCXN9ePSIfkwgKw9v4kTd+psfjlt+VroKG"}]},"maintainers":[{"name":"nrkn","email":"nrkn.com@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/copy_0.1.2_1541109741079_0.8243083390276644"},"_hasShrinkwrap":false},"0.1.3":{"name":"@rgba-image/copy","version":"0.1.3","description":"Copy from one image to another","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"tsc && mocha ./dist/test","coverage":"tsc && nyc --reporter=html --reporter=text mocha ./dist/test"},"nyc":{"exclude":["./dist/test"]},"repository":{"type":"git","url":"git+https://github.com/rgba-image/copy.git"},"keywords":[],"author":{"name":"Nik Coughlin","email":"nrkn.com@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/rgba-image/copy/issues"},"homepage":"https://github.com/rgba-image/copy#readme","dependencies":{"@rgba-image/common":"^0.1.13"},"devDependencies":{"@rgba-image/create-image":"^0.2.0","@rgba-image/png":"^0.1.1","@types/mocha":"^9.0.0","@types/node":"^16.6.1"},"gitHead":"dd65589f3a430ce7365b1858041a53a3aa399647","_id":"@rgba-image/copy@0.1.3","_nodeVersion":"14.17.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-fscJhpp8YtVELGIwQsv1Pj6BEN4PEWAlMJ6a/HWzYxzVr3y/dut4BUrqeWRKiKeRXAGqaV6QxkBxAgYMQYZEvw==","shasum":"bb822ca57b4102b70fa64f56eb3f2cf0895e827e","tarball":"https://registry.npmjs.org/@rgba-image/copy/-/copy-0.1.3.tgz","fileCount":15,"unpackedSize":23449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHHIRCRA9TVsSAnZWagAAS/0P/1prwE8Zk3TuJjWeXJgb\ntvqN5/taegebsNqdBcGMQ6Jvatqhc1mxcgIyrMtYSRx6cBsDsLGFSUsgUX3M\nMneNJmHqZXZVRZSiHY94nKb2dPNpEiKWaQZG4wnvwMs9AaQWT3aoZS0ASpWx\ntL7OVYvC8nxqyX8Z0Hm4ZIhGk0UWm+vvMQQmriG6fDUpygBlYpY7XpzrDKar\nToI/WirnHIxkIBBxcEpZOyAvic6P5i9T9cw018ucl2RRxb/HWiIsCJIrrjxQ\npBN+g79KEDCFnLHCgmnKzKAVTdFUZSppLEzBzCjRsJIQfH/F71ceOBqz+wAJ\nqQ3StD95d1fVyvUw9FUG9DQyugKd1yauZde7evHFnMniTVQ819o0P/oAUZ5m\nDtoQVZ11HgLgzYP5zmeznWOn2R3YMRkLhPCbGMW0HaxqS9utBWqfNHJUyMci\nAkgyxkYborUNHdS9eIawUU0olIjoSh4gYVZVAUXQUPTTHG22d39dfrW+3e8Q\nQtUKIkO+xUY8kJ3pPjunzEL2Eb+rRo8GJPVuuddQccg6Sx6b7pGPzBF99GPo\nFokH5q9NKnXcseR30+hwUq1kA6kmjm6+H0KLupuP6mSB2qCNfKSMvsjtn5Av\nUCy51zsrIk8fLCOor1NtFH3JWOfy1J5fP0W4AT7cEAajxOboiIagp1ix49Z6\nApBY\r\n=HNlZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBKAjUDaOM4JHCRwxO3eVYtR09tcRJGROsnFc4mXrxEwIhAPfh6LlAIiR7cYiu9zwvpf3qi1KrPl+/tNOI36obfo1K"}]},"_npmUser":{"name":"nrkn","email":"nrkn.com@gmail.com"},"directories":{},"maintainers":[{"name":"nrkn","email":"nrkn.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/copy_0.1.3_1629254161344_0.11868677531875127"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-31T23:53:21.534Z","0.1.0":"2018-10-31T23:53:21.853Z","modified":"2022-04-06T19:46:33.747Z","0.1.1":"2018-11-01T05:11:16.196Z","0.1.2":"2018-11-01T22:02:21.164Z","0.1.3":"2021-08-18T02:36:01.472Z"},"maintainers":[{"name":"nrkn","email":"nrkn.com@gmail.com"}],"description":"Copy from one image to another","homepage":"https://github.com/rgba-image/copy#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/rgba-image/copy.git"},"author":{"name":"Nik Coughlin","email":"nrkn.com@gmail.com"},"bugs":{"url":"https://github.com/rgba-image/copy/issues"},"license":"MIT","readme":"# copy\r\n\r\nCopy pixels from one image to another\r\n\r\nThe pixels copied from the source image replace the pixels in the destination\r\nimage\r\n\r\n## install\r\n\r\n`npm install @rgba-image/copy`\r\n\r\n## usage\r\n\r\nCopy all of source to destination:\r\n\r\n```js\r\nconst { copy } = require( '@rgba-image/copy' )\r\n\r\ncopy( source, dest )\r\n```\r\n\r\nCopy from a source region to a location on the destination image:\r\n\r\n```js\r\nconst sourceX = 10\r\nconst sourceY = 20\r\nconst sourceWidth = 50\r\nconst sourceHeight = 100\r\nconst destX = 30\r\nconst destY = 40\r\n\r\ncopy( source, dest, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY )\r\n```\r\n\r\nArguments following `dest` are optional\r\n\r\nIf omitted, `sourceX` is `0`, `sourceY` is `0`, `sourceWidth` is\r\n`source.width - sourceX`, `sourceHeight` is `source.height - sourceY`, `destX`\r\nis `0` and `destY` is `0`\r\n\r\nArguments are checked such that that no out of bound pixels are read or written\r\n\r\n## License\r\n\r\nMIT License\r\n\r\nCopyright (c) 2021 Nik Coughlin\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.","readmeFilename":"README.md"}