{"_id":"@cy4dev/cydemo-bg-color","_rev":"11-2ecc83dfb07ab149917877c40059f219","name":"@cy4dev/cydemo-bg-color","dist-tags":{"latest":"7.0.0"},"versions":{"1.0.0":{"name":"@cy4dev/cydemo-bg-color","version":"1.0.0","keywords":["background","color","green","dom","css"],"author":{"url":"Cy","name":"Chris"},"license":"MIT","_id":"@cy4dev/cydemo-bg-color@1.0.0","maintainers":[{"name":"cy4dev","email":"dev@oqi.de"}],"homepage":"https://gitlab.com/cy4n/npm-cydemo-bg-color#readme","bugs":{"url":"https://gitlab.com/cy4n/npm-cydemo-bg-color/issues"},"dist":{"shasum":"1c2bbadc74f23584dcbf4c41b84ba6b3d45a6cae","tarball":"https://registry.npmjs.org/@cy4dev/cydemo-bg-color/-/cydemo-bg-color-1.0.0.tgz","fileCount":4,"integrity":"sha512-AZd/ptEZ4A1lkUCSs9kKr6t1TVX6HttQB4MdQFGtXFJX2h3UrBb6pv/E0wI7hXxte+dtSw4LMXNaW/BJWGfivw==","signatures":[{"sig":"MEUCIQDi/+MfZ/+FtRSJJzO3SMc0LTCdlf4fqH77iRVoD0wbhQIgDxLGVZOB41SMC0qvzvrfYYyGm/v2GKNUVlngYY/Tx24=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4122},"main":"./src/index.js","type":"module","module":"./src/index.js","exports":{".":"./src/index.js"},"gitHead":"0cc416ec828eb38f3c0b82e7db6a0129f4d31bd4","scripts":{"test":"node --test"},"_npmUser":{"name":"cy4dev","email":"dev@oqi.de"},"repository":{"url":"git+ssh://git@gitlab.com/cy4n/npm-cydemo-bg-color.git","type":"git"},"_npmVersion":"11.17.0","description":"Tiny helper to set a website's background color to green (or any color).","directories":{"test":"test","example":"example"},"sideEffects":false,"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cydemo-bg-color_1.0.0_1784815255273_0.1673464809385985","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@cy4dev/cydemo-bg-color","version":"5.0.0","keywords":["background","color","green","dom","css"],"author":{"url":"Cy","name":"Chris"},"license":"MIT","_id":"@cy4dev/cydemo-bg-color@5.0.0","maintainers":[{"name":"cy4dev","email":"dev@oqi.de"}],"homepage":"https://gitlab.com/cy4n/npm-cydemo-bg-color#readme","bugs":{"url":"https://gitlab.com/cy4n/npm-cydemo-bg-color/issues"},"dist":{"shasum":"c3cfd9164da6a225098fd00b290a5a375d93d0a6","tarball":"https://registry.npmjs.org/@cy4dev/cydemo-bg-color/-/cydemo-bg-color-5.0.0.tgz","fileCount":5,"integrity":"sha512-9L5EFEIg/5GvnqXsUdC/0T9PDZNSm1F6IkXztIrpP7Ax7qLkXA0OAFkUECfPE4/9NnjKicVDTi4yvZ1w8SSRxg==","signatures":[{"sig":"MEYCIQCJIAqUXibdUEdWlTeOba7K655d0O2X6ruXB9TYBbGPRwIhAPrzlGGkIIi466hqpEqBLCHa4bjnyYSD9ePZFJTFVNnc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4325},"main":"./src/index.js","type":"module","module":"./src/index.js","exports":{".":"./src/index.js"},"gitHead":"3dc684446a1e48c9c9c5e0672f8ea98e84280efc","scripts":{"test":"node --test","postinstall":"node src/postinstall.js"},"_npmUser":{"name":"cy4dev","email":"dev@oqi.de"},"repository":{"url":"git+ssh://git@gitlab.com/cy4n/npm-cydemo-bg-color.git","type":"git"},"_npmVersion":"11.17.0","description":"THIS CONTAINS MALWARE FOR DEMO PURPOSES, USE AT YOUR OWN DISCRETION.","directories":{"test":"test","example":"example"},"sideEffects":false,"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cydemo-bg-color_5.0.0_1784824978723_0.7447033397162639","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"@cy4dev/cydemo-bg-color","version":"7.0.0","description":"THIS CONTAINS MALWARE FOR DEMO PURPOSES, USE AT YOUR OWN DISCRETION.","keywords":["background","color","green","dom","css"],"homepage":"https://gitlab.com/cy4n/npm-cydemo-bg-color#readme","bugs":{"url":"https://gitlab.com/cy4n/npm-cydemo-bg-color/issues"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/cy4n/npm-cydemo-bg-color.git"},"license":"MIT","author":{"name":"Chris","url":"Cy"},"type":"module","exports":{".":"./src/index.js"},"main":"./src/index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"node --test","postinstall":"node src/postinstall.js"},"module":"./src/index.js","sideEffects":false,"gitHead":"3dc684446a1e48c9c9c5e0672f8ea98e84280efc","_id":"@cy4dev/cydemo-bg-color@7.0.0","_nodeVersion":"22.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-S0OtgWJ6Y80JGJXZnpMbsslJR/dr9vAu096bBCS9q+2WlEj438tS+RR/mjAlh8HdaeyT5OKQ1oRLcPbGvqJ5gA==","shasum":"8504600e889adf33e81966022d5a616bd89b3865","tarball":"https://registry.npmjs.org/@cy4dev/cydemo-bg-color/-/cydemo-bg-color-7.0.0.tgz","fileCount":5,"unpackedSize":4331,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCKRL6jGbr/dwM09P5IESl3HUXFrS4aauDLAQ+E4VrB1AIgb7jg+GrLMwNcnXnA6ZRDDHbQnV2lutAyKmMJlOxmU2Y="}]},"_npmUser":{"name":"cy4dev","email":"dev@oqi.de"},"maintainers":[{"name":"cy4dev","email":"dev@oqi.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cydemo-bg-color_7.0.0_1784825513014_0.8256926711811061"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-23T14:00:55.113Z","modified":"2026-07-23T16:51:53.303Z","1.0.0":"2026-07-23T14:00:55.445Z","2.0.0":"2026-07-23T15:09:54.686Z","3.0.0":"2026-07-23T15:12:09.274Z","4.0.0":"2026-07-23T16:29:59.446Z","5.0.0":"2026-07-23T16:42:58.880Z","6.0.0":"2026-07-23T16:47:07.476Z","7.0.0":"2026-07-23T16:51:53.142Z"},"bugs":{"url":"https://gitlab.com/cy4n/npm-cydemo-bg-color/issues"},"author":{"name":"Chris","url":"Cy"},"license":"MIT","homepage":"https://gitlab.com/cy4n/npm-cydemo-bg-color#readme","keywords":["background","color","green","dom","css"],"repository":{"type":"git","url":"git+ssh://git@gitlab.com/cy4n/npm-cydemo-bg-color.git"},"description":"THIS CONTAINS MALWARE FOR DEMO PURPOSES, USE AT YOUR OWN DISCRETION.","maintainers":[{"name":"cy4dev","email":"dev@oqi.de"}],"readme":"# cydemo-bg-color\n\n#### DISCLAIMER: THIS IS A DEMO REPO, DO NOT USE!\n\nthe project was vibe-coded for a security demo. it will not be maintained and it will be upgraded with code that resembles malware.\n\nactual use: Tiny helper to set a website's background color to green (or any color).\n\n## Install\n\n```bash\nnpm install @cy4dev/cydemo-bg-color\n```\n\n## Usage\n\n```js\nimport setBackgroundGreen, { setBackgroundColor } from \"cydemo-bg-color\";\n\n// Paint the whole page green\nsetBackgroundGreen();\n\n// Color a specific element\nsetBackgroundGreen(document.querySelector(\"#hero\"));\n\n// Use any CSS color\nsetBackgroundColor(\"#2ecc71\");\nsetBackgroundColor(\"darkgreen\", document.querySelector(\"#sidebar\"));\n```\n\n### In a plain HTML page\n\n```html\n<script type=\"module\">\n  import setBackgroundGreen from \"https://unpkg.com/cydemo-bg-color\";\n  setBackgroundGreen();\n</script>\n```\n\n## API\n\n### `setBackgroundGreen(target?)`\nSets the background of `target` (default `document.body`) to green. Returns the element.\n\n### `setBackgroundColor(color?, target?)`\nSets the background of `target` (default `document.body`) to `color` (default `\"green\"`). Returns the element.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}