diff options
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | hand.png (renamed from tools/petpet/hand.png) | bin | 11719 -> 11719 bytes | |||
| -rwxr-xr-x | mkpets | 9 | ||||
| -rwxr-xr-x | mkpetscmd | 43 | ||||
| -rw-r--r-- | tools/petpet/.gitignore | 1 | ||||
| -rwxr-xr-x | tools/petpet/init.js | 143 | ||||
| -rw-r--r-- | tools/petpet/package-lock.json | 466 | ||||
| -rw-r--r-- | tools/petpet/package.json | 16 |
9 files changed, 64 insertions, 633 deletions
@@ -8,8 +8,8 @@ out/plain/%.png: plain/%.png | out/plain/ out/cube/%cube.gif: plain/%.png mkcube cube.scene | out/cube/ ./mkcube $< $@ -out/pets/%pets.gif: plain/%.png tools/petpet/ | out/pets/ - ./tools/petpet/init.js $< $@ +out/pets/%pets.gif: plain/%.png mkpets | out/pets/ + ./mkpets $< $@ out/thoughts/%thoughts.png: plain/%.png mkthoughts thoughts/ | out/thoughts/ ./mkthoughts $< $@ $$(grep "^$$(basename -s .png $<) " thoughts/colors.txt | cut -d' ' -f 2) @@ -44,6 +44,11 @@ out/%/: discooverlay.mkv: mkdiscooverlay ./mkdiscooverlay +mkpets: mkpetscmd + printf '#!/bin/sh\n. ./find_magick.sh\n' > mkpets + ./mkpetscmd >> mkpets + chmod +x mkpets + usermoji.tar.gz: all tar cfz usermoji.tar.gz --transform s/out/usermoji/ out @@ -15,15 +15,15 @@ when using make: - output is stored in [](out/thoughts/). - file [](thoughts/colors.txt) can be used to specify a background color for each user (default white). -## petpet +## pets -`make petpet` or `./tools/petpet/init.js infile.png outfile.gif` +`make pets` or `./mkpets infile.png outfile.gif` -petpet generator was ported to nodejs, based on [](https://benisland.neocities.org/petpet/) which is browser-only. i can't be assed to rewrite this to a more sane language. +ported from [](https://benisland.neocities.org/petpet/) which is browser-only. -make sure to install deps for petpet generator: `cd tools/petpet && npm install`. +requires imagemagick and ffmpeg. -when using make, output is stored in [](out/petpet/). +when using make, output is stored in [](out/pets/). ## cube diff --git a/tools/petpet/hand.png b/hand.png Binary files differindex 2cc87dfc..2cc87dfc 100644 --- a/tools/petpet/hand.png +++ b/hand.png @@ -0,0 +1,9 @@ +#!/bin/sh +. ./find_magick.sh +( + magick -size 112x112 xc:transparent \( "$1" -resize 98x98! -geometry +14+20 \) -composite \( hand.png -crop 112x112+0+0 -geometry +0+0 \) -composite -depth 8 rgba:- + magick -size 112x112 xc:transparent \( "$1" -resize 102x84! -geometry +12+33 \) -composite \( hand.png -crop 112x112+112+0 -geometry +0+4 \) -composite -depth 8 rgba:- + magick -size 112x112 xc:transparent \( "$1" -resize 111x78! -geometry +8+40 \) -composite \( hand.png -crop 112x112+224+0 -geometry +0+9 \) -composite -depth 8 rgba:- + magick -size 112x112 xc:transparent \( "$1" -resize 102x84! -geometry +10+33 \) -composite \( hand.png -crop 112x112+336+0 -geometry +0+4 \) -composite -depth 8 rgba:- + magick -size 112x112 xc:transparent \( "$1" -resize 98x98! -geometry +12+20 \) -composite \( hand.png -crop 112x112+448+0 -geometry +0+0 \) -composite -depth 8 rgba:- +) | ffmpeg -hide_banner -loglevel error -f rawvideo -pixel_format rgba -video_size 112x112 -framerate 16.666667 -i - -f gif -filter_complex 'split[v],palettegen,[v]paletteuse' -y "$2" diff --git a/mkpetscmd b/mkpetscmd new file mode 100755 index 00000000..5a6eeb5f --- /dev/null +++ b/mkpetscmd @@ -0,0 +1,43 @@ +#!/usr/bin/env lua + +local input = arg[1] or "$1" +local output = arg[2] or "$2" + +local squish = 1.25 +local scale = 0.875 +local delay = 60 +local flip = false + +local sprite = { x = 14, y = 20, w = 112, h = 112 } +local frames = { + { x = 0, y = 0, w = 0, h = 0 }, + { x = -4, y = 12, w = 4, h = -12 }, + { x = -12, y = 18, w = 12, h = -18 }, + { x = -8, y = 12, w = 4, h = -12 }, + { x = -4, y = 0, w = 0, h = 0 }, +} +local hand = { w = 112, h = 112 } + +local cmd = {} +for i, f in ipairs(frames) do + local x, y, w, h = + math.floor(sprite.x + f.x * squish * 0.4), + math.floor(sprite.y + f.y * squish * 0.9), + math.floor((sprite.w + f.w * squish) * scale), + math.floor((sprite.h + f.h * squish) * scale) + local hand_y = math.max(0, math.floor(y * 0.75 - math.max(0, sprite.y) - 0.5)) + table.insert(cmd, + ("\tmagick -size %dx%d xc:transparent" + .." \\( \"%s\" %s -resize %dx%d! -geometry +%d+%d \\) -composite" + .." \\( hand.png -crop %dx%d+%d+%d -geometry +%d+%d \\) -composite" + .." -depth 8 rgba:-\n") + :format(sprite.w, sprite.h, + input, flip and "-flop" or "", w, h, x, y, + hand.w, hand.h, (i-1)*hand.w, 0, 0, hand_y)) +end + +print( + ("(\n%s) | ffmpeg -hide_banner -loglevel error" + .." -f rawvideo -pixel_format rgba -video_size %dx%d -framerate %f -i -" + .." -f gif -filter_complex 'split[v],palettegen,[v]paletteuse' -y \"%s\"") + :format(table.concat(cmd), sprite.w, sprite.h, 1000/delay, output)) diff --git a/tools/petpet/.gitignore b/tools/petpet/.gitignore deleted file mode 100644 index 3c3629e6..00000000 --- a/tools/petpet/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/tools/petpet/init.js b/tools/petpet/init.js deleted file mode 100755 index 32c83bf5..00000000 --- a/tools/petpet/init.js +++ /dev/null @@ -1,143 +0,0 @@ -#!/usr/bin/env node -const { createCanvas, loadImage } = require("canvas"); -const { GIFEncoder, quantize, applyPalette } = require("gifenc"); -const fs = require("fs"); - -const MAX_FRAME = 4; -const OUT_SIZE = 112; -const CACHE_SIZE = 256; - -const g = { - squish: 1.25, - scale: 0.875, - delay: 60, - spriteX: 14, - spriteY: 20, - spriteWidth: 112, - spriteHeight: 112, - flip: false, -}; - -const CANVAS_OPTIONS = Object.freeze({ - antialias: false, - powerPreference: "low-power", -}); - -/// ANIMATION -/** Frame offset values */ -const frameOffsets = [ - { x: 0, y: 0, w: 0, h: 0 }, - { x: -4, y: 12, w: 4, h: -12 }, - { x: -12, y: 18, w: 12, h: -18 }, - { x: -8, y: 12, w: 4, h: -12 }, - { x: -4, y: 0, w: 0, h: 0 }, -]; - -/** - * Get the sprite's positioning for a frame - * @param {number} frame - */ -const getSpriteFrame = (frame) => { - const offset = frameOffsets[frame]; - return { - dx: ~~(g.spriteX + offset.x * (g.squish * 0.4)), - dy: ~~(g.spriteY + offset.y * (g.squish * 0.9)), - dw: ~~((g.spriteWidth + offset.w * g.squish) * g.scale), - dh: ~~((g.spriteHeight + offset.h * g.squish) * g.scale), - }; -}; - -/** Render animation frame */ -const renderFrame = (img, _frame, _ctx, _adjust) => { - const cf = getSpriteFrame(_frame); - - // reset canvas - if (_ctx.globalAlpha !== 1) _ctx.globalAlpha = 1; - _ctx.clearRect(0, 0, OUT_SIZE, OUT_SIZE); - - // flipping the sprite is super annoying. first we translate canvas to where the sprite will - // be which allows us to draw the hand sprite (and the outline for adjust mode) at (0,0). then - // we flip the whole canvas and draw what ever we need to draw flipped, and then finally reset - // the scale/translation and draw the hand - _ctx.save(); - _ctx.translate(cf.dx, cf.dy); - - if (g.flip) { - _ctx.scale(-1, 1); - cf.dw *= -1; // invert the width or the sprite gets drawn off canvas - } - - // draw sprite and outline - _ctx.drawImage(img.sprite, 0, 0, cf.dw, cf.dh); - if (_adjust) _ctx.strokeRect(0, 0, cf.dw, cf.dh); - _ctx.restore(); - - // draw hand - if (_adjust) _ctx.globalAlpha = 0.75; - _ctx.drawImage( - img.hand, - _frame * OUT_SIZE, //sx - 0, //sy - OUT_SIZE, //sw - OUT_SIZE, //sh - 0, //dx - // don't ask where these numbers are from they just work.... - Math.max(0, ~~(cf.dy * 0.75 - Math.max(0, g.spriteY) - 0.5)), //dy - OUT_SIZE, //dw - OUT_SIZE //dh - ); -}; - -/** - * Replace transparent pixels with green since gif.js doesn't dither transparency - * @param {Uint8ClampedArray} data - */ -const optimizeFrameColors = (data) => { - for (let i = 0; i < data.length; i += 4) { - // clamp greens to avoid pure greens in the image from turning transparent - // basically a hack and it's not really noticeable and it works - data[i + 1] = data[i + 1] > 250 ? 250 : data[i + 1]; - - // Set transparent pixels to green - if (data[i + 3] < 120) { - data[i + 0] = 0; - data[i + 1] = 255; - data[i + 2] = 0; - } - - // No more transparent pixels - data[i + 3] = 255; - } -}; - -/** Render gif */ -const renderGif = (img, output) => { - const renderCanvas = createCanvas(OUT_SIZE, OUT_SIZE); - const renderCtx = renderCanvas.getContext("2d", CANVAS_OPTIONS); - const encoder = GIFEncoder(); - - for (let i = 0; i <= MAX_FRAME; i++) { - // render frame - renderFrame(img, i, renderCtx, false); - const imgData = renderCtx.getImageData(0, 0, OUT_SIZE, OUT_SIZE); - - // fix transparency - optimizeFrameColors(imgData.data); - - const palette = quantize(imgData.data, 255); - palette.push([0, 255, 0]); - - const index = applyPalette(imgData.data, palette); - - encoder.writeFrame(index, OUT_SIZE, OUT_SIZE, { palette, delay: g.delay, transparent: true, transparentIndex: palette.length-1 }); - } - - encoder.finish(); - output.write(encoder.bytes()); -}; - -Promise.all([ - loadImage(__dirname + "/hand.png"), - loadImage(process.argv[2]), -]).then(([hand, sprite]) => renderGif({ hand, sprite }, fs.createWriteStream(process.argv[3]))); - diff --git a/tools/petpet/package-lock.json b/tools/petpet/package-lock.json deleted file mode 100644 index 9fa69acd..00000000 --- a/tools/petpet/package-lock.json +++ /dev/null @@ -1,466 +0,0 @@ -{ - "name": "petpet", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "petpet", - "version": "1.0.0", - "license": "GPL-3.0-or-later", - "dependencies": { - "canvas": "^3.2.2", - "gifenc": "^1.0.3" - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/canvas": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-3.2.2.tgz", - "integrity": "sha512-duEt4h1HHu9sJZyVKfLRXR6tsKPY7cEELzxSRJkwddOXYvQT3P/+es98SV384JA0zMOZ5s+9gatnGfM6sL4Drg==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-addon-api": "^7.0.0", - "prebuild-install": "^7.1.3" - }, - "engines": { - "node": "^18.12.0 || >= 20.9.0" - } - }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "license": "MIT", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "license": "(MIT OR WTFPL)", - "engines": { - "node": ">=6" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" - }, - "node_modules/gifenc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/gifenc/-/gifenc-1.0.3.tgz", - "integrity": "sha512-xdr6AdrfGBcfzncONUOlXMBuc5wJDtOueE3c5rdG0oNgtINLD+f2iFZltrBRZYzACRbKr+mSVU/x98zv2u3jmw==", - "license": "MIT" - }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "license": "MIT" - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" - }, - "node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "license": "MIT" - }, - "node_modules/napi-build-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", - "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", - "license": "MIT" - }, - "node_modules/node-abi": { - "version": "3.89.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.89.0.tgz", - "integrity": "sha512-6u9UwL0HlAl21+agMN3YAMXcKByMqwGx+pq+P76vii5f7hTPtKDp08/H9py6DY+cfDw7kQNTGEj/rly3IgbNQA==", - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "license": "MIT" - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/prebuild-install": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", - "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", - "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.", - "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^2.0.0", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/pump": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", - "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tar-fs": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", - "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==", - "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - } - } -} diff --git a/tools/petpet/package.json b/tools/petpet/package.json deleted file mode 100644 index 0b48cd18..00000000 --- a/tools/petpet/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "petpet", - "version": "1.0.0", - "description": "", - "license": "GPL-3.0-or-later", - "author": "", - "type": "commonjs", - "main": "init.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "dependencies": { - "canvas": "^3.2.2", - "gifenc": "^1.0.3" - } -} |
