{"versions":{"1.1.1":{"name":"@jiaminghi/color","version":"1.1.1","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","unpkg":"dist/index.js","module":"es/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"clean":"rimraf lib dist es types","type:check":"tsc --noEmit","lint":"eslint --ext js,ts src test","format:check":"prettier --check .","format":"prettier --write .","build":"rollup -c","prepare":"npm run clean && npm run check && npm run build","test":"mocha","check":"npm run type:check && npm run lint && npm run format:check && npm run test"},"husky":{"hooks":{"pre-commit":"npm run check","pre-push":"npm run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","dependencies":{"@babel/runtime":"^7.7.4"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-transform-runtime":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.27.0","@typescript-eslint/parser":"^2.27.0","chai":"^4.2.0","eslint":"^6.8.0","husky":"^4.2.5","mocha":"^6.2.3","prettier":"^2.0.4","rimraf":"^3.0.2","rollup":"^2.6.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.3.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","typescript":"^3.8.3"},"readmeFilename":"README.md","gitHead":"73793e1e64ec2ab63e6b6beaf9835218fa897c8f","_id":"@jiaminghi/color@1.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.14.4","dist":{"shasum":"184149607792aea2bbd06675e60c5214a8898a28","size":62931,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.1.1.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.1.1_1589439451477_0.620278195251944"},"_hasShrinkwrap":false,"publish_time":1589439451598,"_cnpm_publish_time":1589439451598,"contributors":[]},"1.0.0":{"name":"@jiaminghi/color","version":"1.0.0","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","unpkg":"dist/index.js","module":"es/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"clean":"rimraf lib dist es types","format":"prettier --write .","format:check":"prettier --check .","type:check":"tsc --noEmit","lint":"eslint --ext js,ts src test","build":"rollup -c","prepare":"npm run clean && npm run check && npm run build","test":"mocha","check":"npm run type:check && npm run lint && npm run format:check && npm run test"},"husky":{"hooks":{"pre-commit":"npm run check","pre-push":"npm run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","dependencies":{"@babel/runtime":"^7.7.4"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-transform-runtime":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.27.0","@typescript-eslint/parser":"^2.27.0","chai":"^4.2.0","eslint":"^6.8.0","husky":"^4.2.5","mocha":"^6.2.3","prettier":"^2.0.4","rimraf":"^3.0.2","rollup-plugin-babel":"^4.4.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.3.0","rollup-plugin-typescript2":"^0.27.0","ts-node":"^8.8.2","typescript":"^3.8.3"},"gitHead":"9a7a68cb79773bf80ffd6c3c16a86080664458b3","_id":"@jiaminghi/color@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"bb4497d93f82627711f3cc5feca2a03d8dd4e60b","size":63239,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.0.0_1586599006918_0.06684564596490339"},"_hasShrinkwrap":false,"publish_time":1586599007050,"_cnpm_publish_time":1586599007050,"contributors":[]},"0.1.1":{"name":"@jiaminghi/color","version":"0.1.1","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"build":"node build/index.js","prepublish":"npm run build","deploy":"node deploy/index.js","test":"mocha"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.5.5","@babel/plugin-transform-runtime":"^7.5.5","@babel/register":"^7.4.4","@jiaminghi/fs":"0.0.2","chai":"^4.2.0","ftp":"^0.3.10","mocha":"^6.1.4"},"dependencies":{"@babel/runtime":"^7.5.5"},"gitHead":"262881eac48d834688c66872971cf3a00ca29622","_id":"@jiaminghi/color@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"bddf9012dfce6982d3829a983ffeb91ee9dda7b6","size":66733,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.1.1.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.1.1_1567065660212_0.18188376427777952"},"_hasShrinkwrap":false,"publish_time":1567065660439,"_cnpm_publish_time":1567065660439,"contributors":[]},"0.1.0":{"name":"@jiaminghi/color","version":"0.1.0","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"npm run compile","test":"mocha"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/register":"^7.4.4","babel-register":"^6.26.0","chai":"^4.2.0","mocha":"^6.1.4"},"dependencies":{"@babel/polyfill":"^7.4.4","core-js":"^3.1.4"},"gitHead":"9d873b463b95f4804a13bb8545af2eb29b31f19a","_id":"@jiaminghi/color@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"99ccfbeff691db67ebc6e8b8f73cf8d13a5a4543","size":48449,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.1.0_1562467739247_0.6504702556618591"},"_hasShrinkwrap":false,"publish_time":1562467739384,"_cnpm_publish_time":1562467739384,"contributors":[]},"0.0.6":{"name":"@jiaminghi/color","version":"0.0.6","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"npm run compile","test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5"},"dependencies":{"@babel/polyfill":"^7.4.4"},"gitHead":"05cbf2927ecb6ecb4278b7316446cc476a724a6d","_id":"@jiaminghi/color@0.0.6","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"886aae4f30cee2a9ad842af8a26e73ee48455663","size":10220,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.6.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.6_1560419355754_0.6143949700427918"},"_hasShrinkwrap":false,"publish_time":1560419355949,"_cnpm_publish_time":1560419355949,"contributors":[]},"0.0.5":{"name":"@jiaminghi/color","version":"0.0.5","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"npm run compile","test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5"},"dependencies":{"@babel/polyfill":"^7.4.4"},"gitHead":"5abdee76e830aa3fce0ee22d8dfb5d415db81873","_id":"@jiaminghi/color@0.0.5","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"c975e2336c5d5881a9281a8e7df2a48488e639b5","size":10143,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.5.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.5_1559818833541_0.435577661494573"},"_hasShrinkwrap":false,"publish_time":1559818833686,"_cnpm_publish_time":1559818833686,"contributors":[]},"0.0.4":{"name":"@jiaminghi/color","version":"0.0.4","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","gitHead":"a50a9e1b1e205ada8cf79c0d50982043bcb2a616","_id":"@jiaminghi/color@0.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"bad2fbdb284c44e7ebac5ca247eb1f4b0e791013","size":9359,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.4.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.4_1557917098975_0.929842519952297"},"_hasShrinkwrap":false,"publish_time":1557917099200,"_cnpm_publish_time":1557917099200,"contributors":[]},"0.0.3":{"name":"@jiaminghi/color","version":"0.0.3","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","gitHead":"5f0fc51ffbc27dd0ef9af8174497037c051dc38f","_id":"@jiaminghi/color@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"5931209c6341df99b610d9de98670c247f20dbbd","size":9284,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.3.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.3_1556615444590_0.12190443487530667"},"_hasShrinkwrap":false,"publish_time":1556615444738,"_cnpm_publish_time":1556615444738,"contributors":[]},"0.0.2":{"name":"@jiaminghi/color","version":"0.0.2","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","gitHead":"a779c65c355720b1e1a9e5d22c29509889fbc2d6","_id":"@jiaminghi/color@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"8c86ae9078659fed20daaf05be23b63c098dbd24","size":9219,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.2.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.2_1554712761906_0.4123071422584925"},"_hasShrinkwrap":false,"publish_time":1554712762045,"_cnpm_publish_time":1554712762045,"contributors":[]},"0.0.1":{"name":"@jiaminghi/color","version":"0.0.1","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["color","hex","rgb","bgba","darken","lighten"],"homepage":"https://github.com/jiaming743/Color#readme","gitHead":"ee62948f49f8cf3a1608657498ee61174b36f7a7","_id":"@jiaminghi/color@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"b812455f95fa3c2f1151905380836948d0d672e7","size":9174,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.1_1554354844786_0.035759898570731696"},"_hasShrinkwrap":false,"publish_time":1554354844974,"_cnpm_publish_time":1554354844974,"contributors":[]},"0.0.0":{"name":"@jiaminghi/color","version":"0.0.0","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jiaming743/Color.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","bugs":{"url":"https://github.com/jiaming743/Color/issues"},"keywords":["bezierCurve","polyline","smoothline","length"],"homepage":"https://github.com/jiaming743/Color#readme","gitHead":"f4e389b945e89557b13d1b153ebbc300ad6f9f15","_id":"@jiaminghi/color@0.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"dist":{"shasum":"9ffbe8e62af03b927ee797629b0bafe251d05012","size":2247,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-0.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_0.0.0_1554286691841_0.4229913062492907"},"_hasShrinkwrap":false,"publish_time":1554286691997,"_cnpm_publish_time":1554286691997,"contributors":[]},"1.1.2-test.1672645186545":{"name":"@jiaminghi/color","version":"1.1.2-test.1672645186545","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"cjs/index.js","unpkg":"umd/index.js","module":"es/index.js","types":"es/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"prepare":"husky install","dev":"ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts","clear":"rm es cjs umd -rf","build":"yarn clear && yarn build:es && yarn build:umd","build:es":"vite build --config scripts/build/vite.config.ts","build:umd":"vite build --config scripts/build/vite.config.umd.ts","check":"yarn lint && yarn lint:type && yarn lint:format && yarn test","lint":"eslint --ext js,ts src test","lint:type":"tsc --project ./tsconfig.json --noEmit","lint:format":"prettier --check \"src/**/*.ts\"","format":"prettier --write \"src/**/*.ts\"","test":"mocha","version:test":"ts-node scripts/release/version-generator --type=test"},"husky":{"hooks":{"pre-commit":"yarn run check","pre-push":"yarn run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","rgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^18.7.18","@types/prettier":"^2.7.2","@types/semver":"^7.3.13","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1","@vitejs/plugin-react":"^3.0.0","chai":"^4.2.0","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","fs-extra":"^11.1.0","husky":"^8.0.2","less":"^4.1.3","mocha":"^6.2.3","ora":"5.4.1","prettier":"^2.0.4","react":"^18.2.0","react-dom":"^18.2.0","semver":"^7.3.8","ts-node":"^8.8.2","typescript":"^4.8.3","vite":"^4.0.0","vite-plugin-dts":"^1.7.1"},"gitHead":"b674b57c5db78fb2d2b2bb580528fbe295baa5e3","_id":"@jiaminghi/color@1.1.2-test.1672645186545","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-G2jyD9lmnzyTXxu5ncJWBjxIG1fAmwFusdc38Nroz5sRWNPVh/59GIs1x+AWJjcNokFeoSEQPxfzxtoPvEab0g==","shasum":"e4b8b17d645c8980b9188c79f334271ad38a13d2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.1.2-test.1672645186545.tgz","fileCount":14,"unpackedSize":52080,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICo6ATUid1rciJ4vUl1Po97pKqiFeqNPcCZEpt7NRbBoAiBlsKBTXc3rmeOUfIBa8B8a0XZtp2bPUonAx+yMMdewow=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsopNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEHQ/+LtZ5rmKgk8OxjMxOsiMozHAZprTz/SoTXQmuWc9bY3/Yr+Ri\r\ntztkYhN3uY32MHTODgzfoxAXHJqvtDb5G2GWEcUfN01rjNVf340x7YGX2qM+\r\np87RacCsQNojrjvMu3JRvuKJfawTOGuJNa2+GTvmQdQ/T9Hm/CCo5kzYyv+I\r\ntF3GbKz4lmXByIydCHBh8d2CjxdNdqIzjh22M/vgX9euZwfSQnZxZmt0inmt\r\nE+Z3yO5ftsdyMBqmLZDaiTITL7KHozqmfLZy4O1y+OK6pzPUGUnq13sAGfjW\r\nSWQW+zWYDz99bvWvimq+hQcCy3XTQaK3L1YjO/g/UBU/Ohswf3GJZoS5XnOv\r\npR+K6acx3Qlzu3PIGLpdJse35cffwWNDUCr4czmfXxKDCDrwV5JA3ZTW3Tb3\r\nSJztsTR64Kr5Zx+tVZRT/yG4qj0+rojwATmjMmGbheofC/LxuEihel2AG8Jd\r\nmy2c6Fv4qOOM5i8qpy1uKOsIcl0QyfTu5Ssi8a+9UA1jliKu3bobFF9712dF\r\nf2bwhi6UBgq7+MiIoxzPoRKAAJpydQZlwi2KIU0PAeQZmKmpkZl7VOVl9OSN\r\nPnAxQN+aTYEza67xAqSEtccbz3PU/9UIhWXh8kIYCZ4add27F6Ze/8gQS3/9\r\nazx4oW6Fv94m5edLBN08269FWT/ZnfZqzUo=\r\n=rsKf\r\n-----END PGP SIGNATURE-----\r\n","size":14247},"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.1.2-test.1672645186545_1672645196813_0.019056984633091023"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-02T07:39:59.684Z","contributors":[]},"1.1.2-test.1672645645383":{"name":"@jiaminghi/color","version":"1.1.2-test.1672645645383","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"cjs/index.js","unpkg":"umd/index.js","module":"es/index.js","types":"es/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"prepare":"husky install","dev":"ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts","clear":"rm es cjs umd -rf","build":"yarn clear && yarn build:es && yarn build:umd","build:es":"vite build --config scripts/build/vite.config.ts","build:umd":"vite build --config scripts/build/vite.config.umd.ts","check":"yarn lint && yarn lint:type && yarn lint:format && yarn test","lint":"eslint --ext js,ts src test","lint:type":"tsc --project ./tsconfig.json --noEmit","lint:format":"prettier --check \"src/**/*.ts\"","format":"prettier --write \"src/**/*.ts\"","test":"mocha","version:test":"ts-node scripts/release/version-generator --type=test"},"husky":{"hooks":{"pre-commit":"yarn run check","pre-push":"yarn run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","rgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^18.7.18","@types/prettier":"^2.7.2","@types/semver":"^7.3.13","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1","@vitejs/plugin-react":"^3.0.0","chai":"^4.2.0","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","fs-extra":"^11.1.0","husky":"^8.0.2","less":"^4.1.3","mocha":"^6.2.3","ora":"5.4.1","prettier":"^2.0.4","react":"^18.2.0","react-dom":"^18.2.0","semver":"^7.3.8","ts-node":"^8.8.2","typescript":"^4.8.3","vite":"^4.0.0","vite-plugin-dts":"^1.7.1"},"readmeFilename":"README.md","gitHead":"947c5c5083d84146f7c46c49e1803accfca6a8dc","_id":"@jiaminghi/color@1.1.2-test.1672645645383","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5BEr0oYClJBxZ7WsLsLs/WlnIGeNENRvqQwUAf7PBEQvoIarGgd0gaHkijWCK8nrbNhz5b1eklyJ9RGm0Xw+Dw==","shasum":"d52784ea7b11bc4eb893cbb1d147bf4dbf97e665","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.1.2-test.1672645645383.tgz","fileCount":14,"unpackedSize":52080,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDchxqJUHKlV+RuSfEs9Arv36aWT2wQcNdhhkZUl0XAFQIhAPGlarNyoBkmEzEMaQeK2o9zRieOwlNNyTyOcJn1eAtr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsowZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrShg/9EswXSddO0q8HXEAzTmbYthIFFnAAkpWecqSOctG3jZ7pRVcW\r\nUugKNw/xARK7eCmnw6fC0had70rP5LiMCjX5fFeAZsqTLeo4FUUyzXi5SPvD\r\n8VO1MNYvIdXdVD6boTdRyTpEJPAQI2ni9B++NvVT2LOLhNgJeUpCGB99gI5o\r\nK3S7N3ccJPdhxVqRdBJZHDyY2qVD2hFILkBq8NBv/c7c2cw/rDkRwyHxlyQA\r\nF1BoFbl7uP7AysGwwhB88u/K0mTulLx69F8qm1S5THe/yOjWBkNBrzD5HKTH\r\nrQOLv37tyvziH6Em8SD/RK0S4QVwrmbz6OGzsiLGvRRYXTrHe5JZ9Bjm6F1q\r\n2hsJq8Fu7NacUVmEyNbjJOCopP5p4BNDAIRmUENhSV+u74ObCQzP/eI82sZk\r\nisn3lZDMELByOVOxerYS7+yJPiEugqG+nGsb6uAySDLct+Z5svT4SohxyknT\r\nRbXEwEwmoF9FehGI4KvG4hsyqiF443XAdONTwDCF2kEqTReiHsRv0gc0xkae\r\nW5KP6duJLo9E3hDbsoohcrVOHypyVQ+AKsJsTRcqTBaOothOl3sNfRkngdQ1\r\nw+oobRLLrt/+whBXvz9XT0eDcbSZUXo64RWTzhjbaQKUi/2f0JgXPYVr9IAO\r\nq99m3eBnAmXNvd2fkNPOXV3c77eEJpOQytw=\r\n=+Gfu\r\n-----END PGP SIGNATURE-----\r\n","size":14245},"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.1.2-test.1672645645383_1672645657012_0.9080174359729432"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-02T07:47:42.150Z","contributors":[]},"1.1.2":{"name":"@jiaminghi/color","version":"1.1.2","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"cjs/index.js","unpkg":"umd/index.js","module":"es/index.js","types":"es/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"prepare":"husky install","dev":"ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts","clear":"rm es cjs umd -rf","build":"yarn clear && yarn build:es && yarn build:umd","build:es":"vite build --config scripts/build/vite.config.ts","build:umd":"vite build --config scripts/build/vite.config.umd.ts","check":"yarn lint && yarn lint:type && yarn lint:format && yarn test","lint":"eslint --ext js,ts src test","lint:type":"tsc --project ./tsconfig.json --noEmit","lint:format":"prettier --check \"src/**/*.ts\"","format":"prettier --write \"src/**/*.ts\"","test":"mocha","version:test":"ts-node scripts/release/version-generator --type=test"},"husky":{"hooks":{"pre-commit":"yarn run check","pre-push":"yarn run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","rgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^18.7.18","@types/prettier":"^2.7.2","@types/semver":"^7.3.13","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1","@vitejs/plugin-react":"^3.0.0","chai":"^4.2.0","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","fs-extra":"^11.1.0","husky":"^8.0.2","less":"^4.1.3","mocha":"^6.2.3","ora":"5.4.1","prettier":"^2.0.4","react":"^18.2.0","react-dom":"^18.2.0","semver":"^7.3.8","ts-node":"^8.8.2","typescript":"^4.8.3","vite":"^4.0.0","vite-plugin-dts":"^1.7.1"},"gitHead":"947c5c5083d84146f7c46c49e1803accfca6a8dc","_id":"@jiaminghi/color@1.1.2","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-rBfSxbvYPAR6RsMCE/az257ejl8P29VKk91zfHQ53wfy9Z7iJhXcsoZUlCayoOYYo+9U9/e5KmpZG50x5iLSMA==","shasum":"675e673d84db7bd0b57ae19aa3dfb553a0b9f205","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.1.2.tgz","fileCount":14,"unpackedSize":52061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwhT7b9wgnwXkgd8ffTo7wQ2IPNYqSnSygYpr9ZAQdFQIhAL/IpsdysJUyumcCilDK23BUcwpSprsd8P8Bk+L6EYRn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsoylACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqBw/+LWDexCOKkeyHFapHb0UaMZgAK11p0AU+Pxj+zCmOX9igl0MR\r\nGgdUTk0OsAOxiTQFhgaT8+kSKChg0uvyyG6/hlReDR5wDcCzAcjv/uUkwxaR\r\n9GrJgCBWjHxqYI5BHilI9CSzVRFg637W9Do/UnQldgmB89HnaDDhQvLhF/Lu\r\nbv3SLx2V31K9KTBFWOi5pQvzqNJGTwgCRrxcJmxi1JWSQEOFwKhE0nL2Jx2y\r\nntiaPfzKnaMbBgZkONUlb4M+Xx9JcXCJUCMtfRaDf5RpZEzDr5AMXMoNOVEQ\r\nsYmgcuHlDidoGIpCcxYGQrVhxP7wour1TqBS4muGPScMYoocJSMZOr5rG6yD\r\nLkCXoUClcXAVuFcB49+APswBGdlsX7qZA/Q7YTzpJxWVp6W3Y0j2tDMIIZBN\r\nFkRV0+LhzsdTYsSg+valdJT09QKGvPBEZPTuSO9Rt7oc4i2ojJz4tsSApLuE\r\ncyITaV1jB3wRthTwupW3uY3IGlkYnSPM2YSFCbGnfLWk8gjsky4jwLcC1dkO\r\n+lulgJbPAD0wMbm+/JNM/QLJmXxuNpGHRl8842h46HOzZMBj2p+R/WKQnOZE\r\nca9qvEAV/D9YdVcFMGF+VAcuiyklk/0dJUIxFyFUSy2unfhVUC3vMNCAOrls\r\nJr/vqZjMTX/IFZq0a2mJ3Q+Zf8WIL+qduiU=\r\n=ifSu\r\n-----END PGP SIGNATURE-----\r\n","size":14233},"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.1.2_1672645797622_0.5319891349253685"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-02T07:50:05.646Z","contributors":[]},"1.1.3":{"name":"@jiaminghi/color","version":"1.1.3","author":{"name":"JiaMing","email":"743192023@qq.com"},"description":"Color extension","main":"cjs/index.js","unpkg":"umd/color.umd.js","module":"es/index.mjs","types":"es/index.d.ts","repository":{"type":"git","url":"git+https://github.com/DataV-Team/Color.git"},"scripts":{"prepare":"husky install","dev":"ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts","clear":"rm es cjs umd -rf","build":"yarn clear && yarn build:es && yarn build:umd","build:es":"vite build --config scripts/build/vite.config.ts","build:umd":"vite build --config scripts/build/vite.config.umd.ts","check":"yarn lint && yarn lint:type && yarn lint:format && yarn test","lint":"eslint --ext js,ts src test","lint:type":"tsc --project ./tsconfig.json --noEmit","lint:format":"prettier --check \"src/**/*.ts\"","format":"prettier --write \"src/**/*.ts\"","test":"mocha","version:test":"ts-node scripts/release/version-generator --type=test"},"husky":{"hooks":{"pre-commit":"yarn run check","pre-push":"yarn run check"}},"license":"MIT","bugs":{"url":"https://github.com/DataV-Team/Color/issues"},"keywords":["color","hex","rgb","rgba","darken","lighten"],"homepage":"https://github.com/DataV-Team/Color#readme","devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^18.7.18","@types/prettier":"^2.7.2","@types/semver":"^7.3.13","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1","@vitejs/plugin-react":"^3.0.0","chai":"^4.2.0","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","fs-extra":"^11.1.0","husky":"^8.0.2","less":"^4.1.3","mocha":"^6.2.3","ora":"5.4.1","prettier":"^2.0.4","react":"^18.2.0","react-dom":"^18.2.0","semver":"^7.3.8","ts-node":"^8.8.2","typescript":"^4.8.3","vite":"^4.0.0","vite-plugin-dts":"^1.7.1"},"gitHead":"3e05a257e87f1fa248608424a3316927eb55bcdb","_id":"@jiaminghi/color@1.1.3","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ZY3hdorgODk4OSTbxyXBPxAxHPIVf9rPlKJyK1C1db46a50J0reFKpAvfZG8zMG3lvM60IR7Qawgcu4ZDO3+Hg==","shasum":"a2336750d1266155ffe80375c58c26fdec495611","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jiaminghi/color/-/color-1.1.3.tgz","fileCount":14,"unpackedSize":52066,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/6B+DJq3YgRMNKJ5NZshQwEp23e2tLhni7redUA2GVAIge+8bbXr+ArF+jdMcC39uLhVP3Bjdkl9Tt0BaEdZMaBI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjspD6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhBw//apsvme5C2koSXeaxmVkyVlRDoh3JMRduRxTdDfR1iluHq40j\r\nUj1E9mp9Y7feLBt6G4NTLG3Zo6lIv9DZBo66OQyQzZmtWJ1LHvVMBBuUp4lB\r\ngeD1rSO+NtnQQUNkx7kfYFIMka62mtXP5Zlic1cFtgyAe/61L+Ap+dPrHtN8\r\nsmQFfa832+ZAU3Le9SZR7gpOv+XCoJIqbT67kmvEzJCht3Bf3YTqkoRNAGhJ\r\nDn1WhzHnkH3v1pUJ9E9N/V3fNEEoipp5VTyXYTmC5icV5AIUuaHgqPX7gJVZ\r\n8TEE+MkWZaBPRFAzmPsr3nD0bjmuP0mYhHUl+AE6KfTUxPZwinduLDOfkgdo\r\nQMyUR7S7WcEOez0Y5AhfszT5jhiowj32AVnhZEbCSgJJkFL23LwtMeWRlUAm\r\npNfEmfR1/F1A/c4FrMI+JPIVAwD+QQ9ZXyK21AdSg9u0SUFJ28aCJ0NmcFyM\r\n4zDl97hzGyx5luNv1xRMYnjQapDw6Z91lFnATT34mZVF3BnvdcqjrdOa6YaT\r\nN26BCbVtQV2os2ZAC0DCJ3TT4KVjuxdv6VauxV6qtcC+2TXDKXR4SviaWNxG\r\n1krbf128fU8oHigdvuf99bfV91hYhF1I7qoO681qpKzbLqpoAhsMaJ38vrAS\r\n38svIWErw/km+dE9XW+YU6Mi/PQD5cf4wnE=\r\n=Q/ky\r\n-----END PGP SIGNATURE-----\r\n","size":14230},"_npmUser":{"name":"anonymous","email":"743192023@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"743192023@qq.com"},{"name":"anonymous","email":"949267840@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color_1.1.3_1672646905786_0.05764809141353422"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-02T08:10:47.266Z","contributors":[]}},"dist-tags":{"latest":"1.1.3","next":"1.1.1","test":"1.1.2-test.1672645645383"},"name":"@jiaminghi/color","time":{"modified":"2023-08-08T08:38:59.686Z","created":"2022-01-27T09:19:13.887Z","1.1.1":"2020-05-14T06:57:31.598Z","1.0.0":"2020-04-11T09:56:47.050Z","0.1.1":"2019-08-29T08:01:00.439Z","0.1.0":"2019-07-07T02:48:59.384Z","0.0.6":"2019-06-13T09:49:15.949Z","0.0.5":"2019-06-06T11:00:33.686Z","0.0.4":"2019-05-15T10:44:59.200Z","0.0.3":"2019-04-30T09:10:44.738Z","0.0.2":"2019-04-08T08:39:22.045Z","0.0.1":"2019-04-04T05:14:04.974Z","0.0.0":"2019-04-03T10:18:11.997Z","1.1.2-test.1672645186545":"2023-01-02T07:39:57.007Z","1.1.2-test.1672645645383":"2023-01-02T07:47:37.201Z","1.1.2":"2023-01-02T07:49:57.831Z","1.1.3":"2023-01-02T08:08:25.966Z"},"readme":"[ENGLISH](./README_EN.md)\n\n<h1 align=\"center\">Color Extension</h1>\n\n<p align=\"center\">\n  <a href=\"https://travis-ci.com/DataV-Team/color\">\n    <img src=\"https://img.shields.io/travis/com/DataV-Team/color.svg\" alt=\"Travis CI\" />\n  </a>\n  <a href=\"https://github.com/DataV-Team/color/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/DataV-Team/color.svg\" alt=\"LICENSE\" />\n  </a>\n  <a href=\"https://www.npmjs.com/package/@jiaminghi/color\">\n    <img src=\"https://img.shields.io/npm/v/@jiaminghi/color.svg\" alt=\"NPM\" />\n  </a>\n</p>\n\n### 这是一个提供如下几个方法的颜色插件。\n\n- **[isHex](#isHex)**\n\n  判断一个颜色是否为 Hex 类型\n\n- **[isRgb](#isRgb)**\n\n  判断一个颜色是否为 Rgb 类型\n\n- **[isRgba](#isRgba)**\n\n  判断一个颜色是否为 Rgba 类型\n\n- **[isRgbOrRgba](#isRgbOrRgba)**\n\n  判断一个颜色是否为 Rgb 或 Rgba 类型\n\n- **[darken](#darken)**\n\n  加深颜色\n\n- **[lighten](#lighten)**\n\n  提亮颜色\n\n- **[fade](#fade)**\n\n  调节颜色透明度\n\n- **[toHex](#toHex)**\n\n  转换成 Hex 颜色\n\n- **[toRgb](#toRgb)**\n\n  将颜色转为 Rgb 或 Rgba 颜色\n\n- **[getOpacity](#getOpacity)**\n\n  获取颜色透明度\n\n- **[getRgbValue](#getRgbValue)**\n\n  获取颜色的 Rgb 值\n\n- **[getRgbaValue](#getRgbaValue)**\n\n  获取颜色的 Rgba 值\n\n- **[getColorFromRgbValue](#getColorFromRgbValue)**\n\n  从 Rgb 或 Rgba 值获取颜色\n\n### 附录\n\n- **[颜色关键字](#颜色关键字)**\n\n  内置颜色关键字\n\n### npm 安装\n\n```shell\n$ npm install @jiaminghi/color\n```\n\n### 使用\n\n```javascript\nimport { toHex } from '@jiaminghi/color'\n\n// do something\n```\n\n### 快速体验\n\n```html\n<!--调试版-->\n<script src=\"https://unpkg.com/@jiaminghi/color/dist/index.js\"></script>\n<!--压缩版-->\n<script src=\"https://unpkg.com/@jiaminghi/color/dist/index.min.js\"></script>\n<script>\n  const { darken, lighten } = window.Color\n  // do something\n</script>\n```\n\n---\n\n<h3 align=\"center\">示例</h3>\n\n#### isHex\n\n```typescript\n/**\n * @description 判断一个颜色是否为hex类型\n * @param {string} color 可能是hex颜色的字符串\n * @return {boolean} 判断结果\n */\ntype isHex = (color: string) => boolean\n\nisHex('#000') // true\nisHex('#333333') // true\nisHex('Not A Color') // false\nisHex('rgb(0,0,0)') // false\nisHex('rgba(0,0,0,1)') // false\n```\n\n#### isRgb\n\n```typescript\n/**\n * @description 判断一个颜色是否为rgb类型\n * @param {string} color 可能是rgb颜色的字符串\n * @return {boolean} 判断结果\n */\ntype isRgb = (color: string) => boolean\n\nisRgb('rgb(0,0,0)') // true\nisRgb('RGB(0,0,0)') // true\nisRgb('Not A Color') // false\nisRgb('#000') // false\nisRgb('#000000') // false\n```\n\n#### isRgba\n\n```typescript\n/**\n * @description 判断一个颜色是否为rgba类型\n * @param {string} color 可能是rgba颜色的字符串\n * @return {boolean} 判断结果\n */\ntype isRgba = (color: string) => boolean\n\nisRgba('rgba(0,0,0,1)') // true\nisRgba('rgb(0,0,0)') // false\nisRgba('Not A Color') // false\nisRgba('#000') // false\nisRgba('#000000') // false\n```\n\n#### isRgbOrRgba\n\n```typescript\n/**\n * @description 判断一个颜色是否为rgb或rgba类型\n * @param {string} color 可能是rgb或rgba颜色的字符串\n * @return {boolean} 判断结果\n */\ntype isRgbOrRgba = (color: string) => boolean\n\nisRgbOrRgba('rgb(0,0,0)') // true\nisRgbOrRgba('RGB(0,0,0)') // true\nisRgbOrRgba('rgba(0,0,0,1)') // true\nisRgbOrRgba('#000') // false\nisRgbOrRgba('Not A Color') // false\n```\n\n#### darken\n\n```typescript\n/**\n * @description 加深颜色\n * @param {string} color   Hex|Rgb|Rgba颜色或颜色关键字\n * @param {number} percent 加深的百分比 (1-100)\n * @return {string} Rgba颜色 (无效输入将抛出异常)\n */\ntype darken = (color: string, percent: number) => string\n\nconst before = '#3080E8'\n\nconst after = darken(color, 20)\n// after = 'rgba(0,77,181,1)'\n```\n\n<p align=\"center\">\n  <img width=\"180px\" src=\"./exampleImgs/1.jpg\" />\n</p>\n\n#### lighten\n\n```typescript\n/**\n * @description 提亮颜色\n * @param {string} color   Hex|Rgb|Rgba颜色或颜色关键字\n * @param {number} percent 提亮的百分比 (1-100)\n * @return {string} Rgba颜色 (无效输入将抛出异常)\n */\ntype lighten = (color: string, percent: number) => string\n\nconst before = '#3080E8'\n\nconst after = lighten(color, 20)\n// after = 'rgba(99,179,255,1)'\n```\n\n<p align=\"center\">\n    <img width=\"180px\" src=\"./exampleImgs/2.jpg\" />\n</p>\n\n#### fade\n\n```typescript\n/**\n * @description 调节颜色透明度\n * @param {string} color   Hex|Rgb|Rgba颜色或颜色关键字\n * @param {number} Percent 透明度百分比\n * @return {string} Rgba颜色 (无效输入将抛出异常)\n */\ntype fade = (color: string, percent: number) => string\n\nconst before = '#3080E8'\n\nconst after = lighten(color, 20)\n// after = 'rgba(48,128,232,0.2)'\n```\n\n<p align=\"center\">\n  <img width=\"180px\" src=\"./exampleImgs/3.jpg\" />\n</p>\n\n#### toHex\n\n```typescript\n/**\n * @description 转换成Hex颜色\n * @param {string} color Hex|Rgb|Rgba颜色或颜色关键字\n * @return {string} Hex颜色 (无效输入将抛出异常)\n */\ntype toHex = (color: string) => string\n\nconst before = 'rgb(48,128,232)'\n\nconst after = toHex(before)\n// after = '#3080e8'\n```\n\n#### toRgb\n\n```typescript\n/**\n * @description 将颜色转为Rgb或Rgba颜色\n * @param {string} color   Hex|Rgb|Rgba颜色或颜色关键字\n * @param {number} opacity 颜色的透明度 (输入该参数将生成Rgba颜色)\n * @return {string} Rgb或Rgba颜色 (无效输入将抛出异常)\n */\ntype toRgb = (color: string, opacity: number) => string\n\nconst before = '#3080E8'\n\nconst after1 = toRgb(before)\n// after1 = 'rgb(48,128,232)'\nconst after2 = toRgb(before, 0.2)\n// after2 = 'rgba(48,128,232,0.2)'\n```\n\n#### getOpacity\n\n```typescript\n/**\n * @description 获取颜色透明度\n * @param {string} color Hex|Rgb|Rgba颜色或颜色关键字\n * @return {number} 颜色透明度 (无效输入将抛出异常)\n */\ntype getOpacity = (color: string) => number\n\nconst color1 = '#3080E8'\nconst color2 = 'rgba(48,128,232,0.2)'\n\nconst opacity1 = getOpacity(color1)\n// opacity1 = 1\nconst opacity2 = getOpacity(color2)\n// opacity2 = 0.2\n```\n\n#### getRgbValue\n\n```typescript\n/**\n * @description 获取颜色的Rgb值\n * @param {string} color Hex|Rgb|Rgba颜色或颜色关键字\n * @return {RgbValue} Rgb值 (无效输入将抛出异常)\n */\ntype RgbValue = [number, number, number]\ntype getRgbValue = (color: string) => RgbValue\n\nconst color = '#3080E8'\n\nconst rgbValue = getRgbValue(color)\n// rgbValue = [48, 128, 232]\n```\n\n#### getRgbaValue\n\n```typescript\n/**\n * @description 获取颜色的Rgba值\n * @param {String} color Hex|Rgb|Rgba颜色或颜色关键字\n * @return {RgbaValue|null} Rgba值 (无效输入将抛出异常)\n */\ntype RgbaValue = [number, number, number, number]\ntype getRgbaValue = (color: string) => RgbaValue\n\nconst color1 = '#3080E8'\nconst color2 = 'rgba(48,128,232,0.2)'\n\nconst rgbaValue1 = getRgbaValue(color1)\n// rgbaValue1 = [48, 128, 232, 1]\nconst rgbaValue2 = getRgbaValue(color2)\n// rgbaValue2 = [48, 128, 232, 0.2]\n```\n\n#### getColorFromRgbValue\n\n```typescript\n/**\n * @description 从Rgb或Rgba值获取颜色\n * @param {Value} value Rgb或Rgba颜色的值\n * @return {string} Rgb颜色或Rgba颜色 (无效输入将抛出异常)\n */\ntype RgbValue = [number, number, number]\ntype RgbaValue = [number, number, number, number]\ntype Value = RgbValue | RgbaValue\ntype getColorFromRgbValue = (value: Value) => string\n\nconst value1 = [48, 128, 232]\nconst value2 = [48, 128, 232, 0.2]\n\nconst color1 = getColorFromRgbValue(value1)\n// color1 = 'rgb(48,128,232)'\nconst color2 = getColorFromRgbValue(value2)\n// color2 = 'rgba(48,128,232,0.2)'\n```\n\n#### 颜色关键字\n\n<p align=\"center\">\n  <img width=\"750px\" src=\"./exampleImgs/keywords.png\" />\n</p>","users":{}}