{"_id":"@so-ric/colorspace","_rev":"4171600","name":"@so-ric/colorspace","description":"Generate HEX colors for a given namespace using color v5","dist-tags":{"latest":"1.1.6"},"maintainers":[{"name":"so-ric","email":""}],"time":{"modified":"2026-03-01T21:18:59.000Z","created":"2025-09-22T21:59:43.771Z","1.1.6":"2025-09-30T13:13:19.345Z","1.1.5":"2025-09-22T22:13:52.828Z","1.1.4":"2025-09-22T21:59:43.771Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git+https://github.com/so-ric/colorspace.git"},"versions":{"1.1.6":{"name":"@so-ric/colorspace","version":"1.1.6","description":"Generate HEX colors for a given namespace using color v5","main":"dist/index.cjs.js","scripts":{"build":"rollup -c","prepare":"npm run build","test":"mocha test.js"},"keywords":["namespace","color","hex","colorize","name","space","colorspace"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/so-ric/colorspace/issues"},"homepage":"https://github.com/so-ric/colorspace","repository":{"type":"git","url":"git+https://github.com/so-ric/colorspace.git"},"dependencies":{"color":"^5.0.2","text-hex":"1.0.x"},"devDependencies":{"assume":"2.3.x","mocha":"11.7.x","pre-commit":"1.2.x","rollup":"^3.0.0","@rollup/plugin-node-resolve":"^15.0.0","@rollup/plugin-commonjs":"^25.0.0","@rollup/plugin-json":"^5.0.0","@rollup/plugin-babel":"^6.0.0","rimraf":"^5.0.0"},"_id":"@so-ric/colorspace@1.1.6","gitHead":"4f6ddd7d158905246e3e282b29d4c9100216dc2b","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"shasum":"62515d8b9f27746b76950a83bde1af812d91923b","size":15833,"noattachment":false,"key":"/@so-ric/colorspace/-/@so-ric/colorspace-1.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@so-ric/colorspace/download/@so-ric/colorspace-1.1.6.tgz"},"_npmUser":{"name":"so-ric","email":"sofiericker@gmail.com"},"directories":{},"maintainers":[{"name":"so-ric","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/colorspace_1.1.6_1759237999148_0.8329151861584212"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-30T13:13:19.345Z","publish_time":1759237999345,"_source_registry_name":"default","_cnpm_publish_time":1759237999345},"1.1.5":{"name":"@so-ric/colorspace","version":"1.1.5","description":"Generate HEX colors for a given namespace using color v5","main":"index.js","type":"module","scripts":{"test":"mocha test.js"},"keywords":["namespace","color","hex","colorize","name","space","colorspace"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/so-ric/colorspace/issues"},"homepage":"https://github.com/so-ric/colorspace","repository":{"type":"git","url":"git+https://github.com/so-ric/colorspace.git"},"dependencies":{"color":"^5.0.2","text-hex":"1.0.x"},"devDependencies":{"assume":"2.3.x","mocha":"11.7.x","pre-commit":"1.2.x"},"_id":"@so-ric/colorspace@1.1.5","gitHead":"195f2d9a4fe211ab83a290eeb392774df4258f0a","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"shasum":"ba4eacea308a53c92bcc3b0bec28f4856797ba8e","size":2206,"noattachment":false,"key":"/@so-ric/colorspace/-/@so-ric/colorspace-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@so-ric/colorspace/download/@so-ric/colorspace-1.1.5.tgz"},"_npmUser":{"name":"so-ric","email":"sofiericker@gmail.com"},"directories":{},"maintainers":[{"name":"so-ric","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/colorspace_1.1.5_1758579232639_0.9614417313171923"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-22T22:13:52.828Z","publish_time":1758579232828,"_source_registry_name":"default","_cnpm_publish_time":1758579232828},"1.1.4":{"name":"@so-ric/colorspace","version":"1.1.4","description":"Generate HEX colors for a given namespace using color v5","main":"index.js","type":"module","scripts":{"test":"mocha test.js"},"keywords":["namespace","color","hex","colorize","name","space","colorspace"],"author":{"name":"so-ric"},"license":"MIT","bugs":{"url":"https://github.com/so-ric/colorspace/issues"},"homepage":"https://github.com/so-ric/colorspace","repository":{"type":"git","url":"git+https://github.com/so-ric/colorspace.git"},"dependencies":{"color":"^5.0.2","text-hex":"1.0.x"},"devDependencies":{"assume":"2.3.x","mocha":"11.7.x","pre-commit":"1.2.x"},"_id":"@so-ric/colorspace@1.1.4","gitHead":"7a3b76e8f42add1dbd62d96ea8452272be2c9316","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"shasum":"5299e37c9f06f370d6767de27ae981b98a89a46d","size":2129,"noattachment":false,"key":"/@so-ric/colorspace/-/@so-ric/colorspace-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@so-ric/colorspace/download/@so-ric/colorspace-1.1.4.tgz"},"_npmUser":{"name":"so-ric","email":"sofiericker@gmail.com"},"directories":{},"maintainers":[{"name":"so-ric","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/colorspace_1.1.4_1758578383585_0.8304541823247411"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-22T21:59:43.771Z","publish_time":1758578383771,"_source_registry_name":"default","_cnpm_publish_time":1758578383771}},"readme":"Based on Arnout Kazemier's https://github.com/3rd-Eden/colorspace, only difference is updated packages to remove security vulnerbilities.\r\nAll credit goes to him.\r\n\r\n# colorspace\r\n\r\nColorspace is a simple module which generates HEX color codes for namespaces.\r\nThe base color is decided by the first part of the namespace. All other parts of\r\nthe namespace alters the color tone. This way you can visually see which\r\nnamespaces belong together and which does not.\r\n\r\n## Installation\r\n\r\nThe module is released in the public npm registry and can be installed by\r\nrunning:\r\n\r\n```\r\nnpm install --save @so-ric/colorspace\r\n```\r\n\r\n## Usage\r\n\r\nWe assume that you've already required the module using the following code:\r\n\r\n```js\r\n'use strict';\r\n\r\nvar colorspace = require('@so-ric/colorspace');\r\n```\r\n\r\nThe returned function accepts 2 arguments:\r\n\r\n1. `namespace` **string**, The namespace that needs to have a HEX color\r\n   generated.\r\n2. `delimiter`, **string**, **optional**, Delimiter to find the different\r\n   sections of the namespace. Defaults to `:`\r\n\r\n#### Example\r\n\r\n```js\r\nconsole.log(colorspace('color')) // #6b4b3a\r\nconsole.log(colorspace('color:space')) // #796B67\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n","_attachments":{},"homepage":"https://github.com/so-ric/colorspace","bugs":{"url":"https://github.com/so-ric/colorspace/issues"},"license":"MIT"}