{"name":"@jimp/plugin-shadow","version":"0.21.2","description":"Creates a shadow on an image.","main":"dist/index.js","module":"es/index.js","repository":{"type":"git","url":"git+https://github.com/jimp-dev/jimp.git"},"types":"index.d.ts","scripts":{"test":"cross-env BABEL_ENV=test mocha --require @babel/register","test:watch":"npm run test -- --reporter min --watch","test:coverage":"nyc npm run test","build":"npm run build:node:production && npm run build:module","build:watch":"npm run build:node:debug -- -- --watch --verbose","build:debug":"npm run build:node:debug","build:module":"cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js","build:node":"babel src -d dist --source-maps --config-file ../../babel.config.js","build:node:debug":"cross-env BABEL_ENV=development npm run build:node","build:node:production":"cross-env BABEL_ENV=production npm run build:node"},"author":"","license":"MIT","dependencies":{"@jimp/utils":"^0.21.2"},"peerDependencies":{"@jimp/custom":">=0.3.5","@jimp/plugin-blur":">=0.3.5","@jimp/plugin-resize":">=0.3.5"},"devDependencies":{"@jimp/custom":"^0.21.2","@jimp/plugin-blur":"^0.21.2","@jimp/plugin-resize":"^0.21.2","@jimp/test-utils":"^0.21.2"},"publishConfig":{"access":"public"},"gitHead":"4634325df1db45594f91a86c3e11cdbdc4416485","bugs":{"url":"https://github.com/jimp-dev/jimp/issues"},"homepage":"https://github.com/jimp-dev/jimp#readme","_id":"@jimp/plugin-shadow@0.21.2","_nodeVersion":"16.18.1","_npmVersion":"lerna/3.16.4/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-4k1V4XC7shIfVDJMEwsghX6XGyoai2mjQzoSXvzG1tTk+ZWI2IPMaOTBt3pf3DW4SK9a0yhGLd8fX4WKgcO4yw==","shasum":"d2f7966cd722edc026cd066a2d9eaf549df80162","tarball":"http://registry-npm.ywwl.com/@jimp/plugin-shadow/download/@jimp/plugin-shadow-0.21.2.tgz","fileCount":13,"unpackedSize":21218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDISGBVoU6BXziuTgYAIRVewyu5fw2EqRqGLSk/L9LzUAiEAoPaxRSOCFxjAWkUS7ka1jVjaXwCUWOpTO+PGhUK6xVs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4DRaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopZQ/9FdH7qeAIHFhFM1tLejBMgLQOrdsQ++zdvYzCykRPDhDuhOuo\r\nXER8aqa7r2bxcoCqNmGMce0zxTNzqOM90BhDkXTP4ZqSZbTxaN3UI7WTsg4y\r\nmGA7q9fl1tehGJ89CzH7AHW5o4oZqXkdXirys7hG2Q/eeDaFUZ3EPJIT+HZY\r\nVplqr1T+2HmtyZELrR6UXLDAeCjALnN7sp0bE6IcVFap8r9Sj8pDcNMNXvYy\r\naEDLreuLHiJwdNoFq4jtDxd0VM22H2JKqsVnMgZRJIJneprD5s64/waR+aPF\r\nYxmEW0NEnRRGepxbammVf5Rz1weN/DpVQzfPVZlOVjsjruGuJFMF4V7A/MAt\r\nMWqXyHBfMmjaKD+/SFp5Xkkjq/Ys4i4UBV/dBXLg9+mauR1F7xREbMHz8VLU\r\noGnhnpvpkJ3cPHyUPg54BfI3ZI+unp/KEf7XeojnWgd6EKxQUkBGfXb6C8C2\r\nhRQaUGLKnB5ipfS9Nf6H3jAXesR6PsyIWGb1XLm17TPNwKLDPM3IvNXakpn8\r\nL1epqi9dNHg6FZp3uUkp6qFfJyme6pYS0rv28vhDZQljWoOK7Wf707l3sm0G\r\naaX3PscPupPNwT4nTQv7QIZF8IwIi2LZFg5t9BF8GU5r/LwIB+WiG4kKtfq0\r\nRTCZkzKz4lCyohdVtrWQdRNiT5urE/1nf6U=\r\n=izCB\r\n-----END PGP SIGNATURE-----\r\n","size":5690,"noattachment":false,"key":"/@jimp/plugin-shadow/-/@jimp/plugin-shadow-0.21.2.tgz"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-shadow_0.21.2_1675637850200_0.6215635374277706"},"_hasShrinkwrap":false,"readme":"<div align=\"center\">\n  <img width=\"200\" height=\"200\"\n    src=\"https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png\">\n  <h1>@jimp/plugin-shadow</h1>\n  <p>Creates a shadow on an image.</p>\n</div>\n\n## Usage\n\n- @param {function(Error, Jimp)} options (optional)\n  - opacity - opacity of the shadow between 0 and 1\n  - size,- of the shadow\n  - blur - how blurry the shadow is\n  - x - x position of shadow\n  - y - y position of shadow\n- @param {function(Error, Jimp)} cb (optional) a callback for when complete\n\n```js\nimport jimp from \"jimp\";\n\nasync function main() {\n  const image = await jimp.read(\"test/image.png\");\n\n  image.shadow();\n  // or\n  image.shadow({ opacity: 0.8, size: 1.2, blur: 10, x: -75, y: -75 });\n}\n\nmain();\n```\n","publish_time":1675637850369,"_cnpm_publish_time":1675637850369,"dist-tags":{"canary":"1.1.5--canary.d9590e7.0","latest":"1.6.1"}}