{"_id":"tinygradient","_rev":"3978451","name":"tinygradient","description":"Fast and small gradients manipulation, built on top of TinyColor","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"mistic100","email":""}],"time":{"modified":"2025-09-01T02:00:21.000Z","created":"2014-06-19T09:47:04.938Z","2.0.1":"2025-02-18T18:14:02.817Z","2.0.0":"2025-02-05T12:10:32.437Z","1.1.5":"2021-06-05T09:03:06.430Z","1.1.4":"2021-03-17T17:12:13.178Z","1.1.3":"2021-02-22T12:01:37.623Z","1.1.2":"2020-04-26T13:13:25.204Z","1.1.1":"2020-01-13T12:35:26.379Z","1.1.0":"2019-12-03T13:03:11.183Z","1.0.0":"2019-01-01T13:44:17.887Z","0.4.3":"2018-12-15T15:37:13.172Z","0.4.2":"2018-10-30T17:17:30.503Z","0.4.1":"2018-09-03T17:23:51.526Z","0.4.0":"2018-04-11T18:35:13.740Z","0.3.1":"2016-10-28T15:40:02.234Z","0.3.0":"2014-12-13T13:50:55.794Z","0.2.0":"2014-08-06T19:36:25.560Z","0.1.0":"2014-06-19T09:47:04.938Z"},"users":{},"author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"versions":{"2.0.1":{"name":"tinygradient","version":"2.0.1","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","type":"module","main":"index.js","types":"types.d.ts","dependencies":{"tinycolor2":"^1.6.0"},"devDependencies":{"@types/tinycolor2":"^1.4.6","alive-server":"^1.3.0","mocha":"^11.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","serve":"alive-server"},"_id":"tinygradient@2.0.1","gitHead":"085e07ebf5af4803ed2b2059e5d31091aa4dc35a","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"shasum":"470eda4c91dcaa15fde6626d1a8c960861aabd78","size":6104,"noattachment":false,"key":"/tinygradient/-/tinygradient-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-2.0.1.tgz"},"_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"directories":{},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tinygradient_2.0.1_1739902442617_0.11831128208262798"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-18T18:14:02.817Z","publish_time":1739902442817,"_source_registry_name":"default","_cnpm_publish_time":1739902442817},"2.0.0":{"name":"tinygradient","version":"2.0.0","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","type":"module","main":"index.js","types":"types.d.ts","dependencies":{"tinycolor2":"^1.6.0"},"devDependencies":{"@types/tinycolor2":"^1.4.6","alive-server":"^1.3.0","mocha":"^11.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","serve":"alive-server"},"_id":"tinygradient@2.0.0","gitHead":"86a321e52bec76ff461439edff07bf9a0a202a7e","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"shasum":"fda9241735d64ac40573cb3ec90e414101c67b37","size":6072,"noattachment":false,"key":"/tinygradient/-/tinygradient-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-2.0.0.tgz"},"_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"directories":{},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tinygradient_2.0.0_1738757432234_0.9951616722411718"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-05T12:10:32.437Z","publish_time":1738757432437,"_source_registry_name":"default","_cnpm_publish_time":1738757432437},"1.1.5":{"name":"tinygradient","version":"1.1.5","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^8.0.1","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^2.0.2","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"52e93deeb3136a3d1702257a6c48f1d173609bb1","_id":"tinygradient@1.1.5","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"0fb855ceb18d96b21ba780b51a8012033b2530ef","size":13043,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.5.tgz"},"_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"directories":{},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.5_1622883786288_0.33388775126188586"},"_hasShrinkwrap":false,"publish_time":1622883786430,"_cnpm_publish_time":1622883786430,"_cnpmcore_publish_time":"2021-12-16T18:34:37.594Z"},"1.1.4":{"name":"tinygradient","version":"1.1.4","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^8.0.1","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^2.0.2","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"90b39608ee4fca162c409654f1f77e2ea524f9f4","_id":"tinygradient@1.1.4","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"48ef5ce68b977d59be3deff8c9cfb5f7dafa95ae","size":13029,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.4.tgz"},"_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"directories":{},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.4_1616001132943_0.6115164872776577"},"_hasShrinkwrap":false,"publish_time":1616001133178,"_cnpm_publish_time":1616001133178,"_cnpmcore_publish_time":"2021-12-16T18:34:37.796Z"},"1.1.3":{"name":"tinygradient","version":"1.1.3","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^8.0.1","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^2.0.2","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"193194a549f322d6b254fb3058915b45da8a96c7","_id":"tinygradient@1.1.3","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"3dfa0fdeb3d8c9e82026395edbaddeca44fbc254","size":13019,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.3.tgz"},"directories":{},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.3_1613995297492_0.019188493222469738"},"_hasShrinkwrap":false,"publish_time":1613995297623,"_cnpm_publish_time":1613995297623,"_cnpmcore_publish_time":"2021-12-16T18:34:38.005Z"},"1.1.2":{"name":"tinygradient","version":"1.1.2","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^7.0.0","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^2.0.2","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"051498c27772f8ed6f0c744de9e6b59923c0b518","_id":"tinygradient@1.1.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"95bcf18fb0d5db989c8a109ead8e5da9867b4e07","size":12915,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.2.tgz"},"maintainers":[{"name":"mistic100","email":""}],"_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.2_1587906805037_0.7907596106506234"},"_hasShrinkwrap":false,"publish_time":1587906805204,"_cnpm_publish_time":1587906805204,"_cnpmcore_publish_time":"2021-12-16T18:34:38.284Z"},"1.1.1":{"name":"tinygradient","version":"1.1.1","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^7.0.0","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^1.27.5","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"cb48364b1f50578b7fd0197b16029bbceaf7fc5b","_id":"tinygradient@1.1.1","_nodeVersion":"10.16.2","_npmVersion":"6.10.3","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"b286aed3b62d93d9b5871cc4d972ea92f9577384","size":12911,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.1.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.1_1578918926255_0.9449260817674776"},"_hasShrinkwrap":false,"publish_time":1578918926379,"_cnpm_publish_time":1578918926379,"_cnpmcore_publish_time":"2021-12-16T18:34:38.541Z"},"1.1.0":{"name":"tinygradient","version":"1.1.0","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"types.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","colorbrewer":"^1.3.0","live-server":"^1.2.1","mocha":"^6.0.0","nodemon":"^2.0.0","npm-run-all":"^4.1.5","rollup":"^1.27.5","rollup-plugin-babel":"^4.3.0","rollup-plugin-commonjs":"^10.0.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"9d6ba40831342bc7368a09e1af94ea8677ddae29","_id":"tinygradient@1.1.0","_nodeVersion":"10.16.2","_npmVersion":"6.10.3","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"cf5c21bcb9180540707d06dbaa8c10cf8ead7f29","size":12326,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.1.0.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.1.0_1575378191024_0.9634195026936299"},"_hasShrinkwrap":false,"publish_time":1575378191183,"_cnpm_publish_time":1575378191183,"_cnpmcore_publish_time":"2021-12-16T18:34:38.727Z"},"1.0.0":{"name":"tinygradient","version":"1.0.0","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"https://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"index.js","browser":"browser.js","types":"tinygradient.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","live-server":"^1.2.1","mocha":"^5.2.0","nodemon":"^1.18.9","npm-run-all":"^4.1.5","rollup":"^1.0.0","rollup-plugin-babel":"^4.2.0","rollup-plugin-commonjs":"^9.2.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*","compile":"rollup --config rollup.config.js","serve":"live-server --watch=browser.js,index.html --entry-file=index.html","start":"npm-run-all --parallel watch serve","watch":"nodemon --watch index.js --exec \"npm run compile\""},"gitHead":"c11b0e1bddf1707ed7b7c526dcd59218955cfee7","_id":"tinygradient@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"6890a94094f0aef83a7d79661ec11772aa1a01a7","size":13341,"noattachment":false,"key":"/tinygradient/-/tinygradient-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-1.0.0.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_1.0.0_1546350257730_0.07183307759698487"},"_hasShrinkwrap":false,"publish_time":1546350257887,"_cnpm_publish_time":1546350257887,"_cnpmcore_publish_time":"2021-12-16T18:34:38.968Z"},"0.4.3":{"name":"tinygradient","version":"0.4.3","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"http://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","types":"tinygradient.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"grunt":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-mocha-test":"^0.13.0","mocha":"^3.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"build":"grunt","test":"grunt test"},"gitHead":"2023362bcaf96ea185b1e0657eec45187d82ec61","_id":"tinygradient@0.4.3","_npmVersion":"5.8.0","_nodeVersion":"8.12.0","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"0a8dfde56f8865deec4c435a51bd5b0c0dec59fa","size":136848,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.4.3.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_0.4.3_1544888232967_0.7526881484222716"},"_hasShrinkwrap":false,"publish_time":1544888233172,"_cnpm_publish_time":1544888233172,"_cnpmcore_publish_time":"2021-12-16T18:34:39.346Z"},"0.4.2":{"name":"tinygradient","version":"0.4.2","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"http://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","types":"tinygradient.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"grunt":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-mocha-test":"^0.13.0","mocha":"^3.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"build":"grunt","test":"grunt test"},"gitHead":"f44ed0c612510ef3e38cc09da03e9b8ddc437280","_id":"tinygradient@0.4.2","_npmVersion":"5.8.0","_nodeVersion":"8.12.0","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"772411d1e7091c5c45edebf8263d8545213a1b5a","size":136063,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.4.2.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_0.4.2_1540919850326_0.8808958423129072"},"_hasShrinkwrap":false,"publish_time":1540919850503,"_cnpm_publish_time":1540919850503,"_cnpmcore_publish_time":"2021-12-16T18:34:39.918Z"},"0.4.1":{"name":"tinygradient","version":"0.4.1","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"http://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","types":"tinygradient.d.ts","dependencies":{"@types/tinycolor2":"^1.4.0","tinycolor2":"^1.0.0"},"devDependencies":{"grunt":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-mocha-test":"^0.13.0","mocha":"^3.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"build":"grunt","test":"grunt test"},"gitHead":"7e8f7906090e510f7febde9706d2b72821d0b821","_id":"tinygradient@0.4.1","_npmVersion":"5.8.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"cb451312fb91cd311aefb922ffa31bf8bb6a4a94","size":137321,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.4.1.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_0.4.1_1535995431366_0.020739779222231913"},"_hasShrinkwrap":false,"publish_time":1535995431526,"_cnpm_publish_time":1535995431526,"_cnpmcore_publish_time":"2021-12-16T18:34:40.512Z"},"0.4.0":{"name":"tinygradient","version":"0.4.0","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"http://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","dependencies":{"tinycolor2":"^1.0.0"},"devDependencies":{"grunt":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-mocha-test":"^0.13.0","mocha":"^3.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"grunt test"},"gitHead":"9415fa818fcc6e77395190f937f85d04dc861499","_id":"tinygradient@0.4.0","_npmVersion":"5.8.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"3771235c649d27058c183c6d9c23e83fd30cd800","size":136374,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.4.0.tgz"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinygradient_0.4.0_1523471713081_0.9060463037820394"},"_hasShrinkwrap":false,"publish_time":1523471713740,"_cnpm_publish_time":1523471713740,"_cnpmcore_publish_time":"2021-12-16T18:34:40.987Z"},"0.3.1":{"name":"tinygradient","version":"0.3.1","author":{"name":"Damien \"Mistic\" Sorel","email":"contact@git.strangeplanet.fr","url":"http://www.strangeplanet.fr"},"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","dependencies":{"tinycolor2":"^1.0.0"},"devDependencies":{"grunt":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-mocha-test":"^0.13.0","mocha":"^3.1.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"grunt test"},"gitHead":"d40a4c3d805718ad3b1f728218128a15cb09a129","_id":"tinygradient@0.3.1","_shasum":"2d9e4fbe348c497ed11e287a4336835b3fd11022","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"dist":{"shasum":"2d9e4fbe348c497ed11e287a4336835b3fd11022","size":9224,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.3.1.tgz"},"maintainers":[{"name":"mistic100","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tinygradient-0.3.1.tgz_1477669200264_0.08913709851913154"},"directories":{},"publish_time":1477669202234,"_hasShrinkwrap":false,"_cnpm_publish_time":1477669202234,"_cnpmcore_publish_time":"2021-12-16T18:34:41.241Z"},"0.3.0":{"name":"tinygradient","version":"0.3.0","authors":[{"name":"Damien \"Mistic\" Sorel","homepage":"http://www.strangeplanet.fr"}],"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","dependencies":{"tinycolor2":"~1.0.0"},"devDependencies":{"grunt":"~0.4.5","grunt-contrib-uglify":"~0.6.0","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.12.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"grunt test --force"},"_id":"tinygradient@0.3.0","dist":{"shasum":"f26926f12f2810f5f8aae56e4d3a7d1e36743b39","size":9376,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"publish_time":1418478655794,"_hasShrinkwrap":false,"_cnpm_publish_time":1418478655794,"_cnpmcore_publish_time":"2021-12-16T18:34:41.474Z"},"0.2.0":{"name":"tinygradient","version":"0.2.0","authors":[{"name":"Damien \"Mistic\" Sorel","homepage":"http://www.strangeplanet.fr"}],"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","dependencies":{"tinycolor2":"~0.10.0"},"devDependencies":{"grunt":"~0.4.5","grunt-contrib-uglify":"~0.4.0","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"grunt test --force"},"_id":"tinygradient@0.2.0","dist":{"shasum":"2732e25e67d3e0b036e6886728ac28405573494e","size":9042,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mistic100","email":"contact@git.strangeplanet.fr"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"publish_time":1407353785560,"_hasShrinkwrap":false,"_cnpm_publish_time":1407353785560,"_cnpmcore_publish_time":"2021-12-16T18:34:41.713Z"},"0.1.0":{"name":"tinygradient","version":"0.1.0","authors":[{"name":"Damien \"Mistic\" Sorel","homepage":"http://www.strangeplanet.fr"}],"description":"Fast and small gradients manipulation, built on top of TinyColor","license":"MIT","homepage":"https://github.com/mistic100/tinygradient","main":"tinygradient.js","dependencies":{"tinycolor2":"~0.10.0"},"devDependencies":{"grunt":"~0.4.5","grunt-contrib-uglify":"~0.4.0","mocha":"~1.20.1"},"keywords":["color","gradient"],"repository":{"type":"git","url":"git://github.com/mistic100/tinygradient.git"},"bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"scripts":{"test":"mocha tests/*.js"},"_id":"tinygradient@0.1.0","dist":{"shasum":"bee54fa4a9d052976a61da6520f9f0544ee7d62c","size":7935,"noattachment":false,"key":"/tinygradient/-/tinygradient-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tinygradient/download/tinygradient-0.1.0.tgz"},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"mistic100","email":"git@git.strangeplanet.fr"},"maintainers":[{"name":"mistic100","email":""}],"directories":{},"publish_time":1403171224938,"_hasShrinkwrap":false,"_cnpm_publish_time":1403171224938,"_cnpmcore_publish_time":"2021-12-16T18:34:41.879Z"}},"readme":"# tinygradient\n\n[![npm version](https://img.shields.io/npm/v/tinygradient.svg?style=flat-square)](https://www.npmjs.com/package/tinygradient)\n[![jsDelivr CDN](https://data.jsdelivr.com/v1/package/npm/tinygradient/badge)](https://www.jsdelivr.com/package/npm/tinygradient)\n[![GZIP size](https://img.shields.io/bundlephobia/minzip/tinygradient?label=gzip%20size)](https://bundlephobia.com/result?p=tinygradient)\n[![Build Status](https://github.com/mistic100/tinygradient/workflows/CI/badge.svg)](https://github.com/mistic100/tinygradient/actions)\n\nEasily generate color gradients with an unlimited number of color stops and steps. \n\n[Live demo](https://mistic100.github.io/tinygradient/)\n\n## Installation\n\n```\n$ npm install tinygradient\n```\n\n### Dependencies\n\n- [TinyColor](https://github.com/bgrins/TinyColor)\n\n## Usage\n\nThe gradient can be generated using RGB or HSV interpolation. HSV usually produces brighter colors.\n\n### Initialize gradient\n\nThe `tinygradient` constructor takes a list or an array of colors stops.\n\n```javascript\n// using varargs\nconst gradient = tinygradient('red', 'green', 'blue');\n\n// using array\nconst gradient = tinygradient([\n  '#ff0000',\n  '#00ff00',\n  '#0000ff'\n]);\n```\n\nThe colors are parsed with TinyColor, [multiple formats are accepted](https://github.com/bgrins/TinyColor/blob/master/README.md#accepted-string-input).\n\n```javascript\nconst gradient = tinygradient([\n  tinycolor('#ff0000'),       // tinycolor object\n  {r: 0, g: 255, b: 0},       // RGB object\n  {h: 240, s: 1, v: 1, a: 1}, // HSVa object\n  'rgb(120, 120, 0)',         // RGB CSS string\n  'gold'                      // named color\n]);\n```\n\nYou can also specify the position of each color stop (between `0` and `1`). If no position is specified, stops are distributed equidistantly.\n\n```javascript\nconst gradient = tinygradient([\n  {color: '#d8e0de', pos: 0},\n  {color: '#255B53', pos: 0.8},\n  {color: '#000000', pos: 1}\n]);\n```\n\n### Generate gradient\n\nEach method takes at least the number of desired steps.\n> The generated gradients might have one more step in certain conditions.\n\n```javascript\n// RGB interpolation\nconst colorsRgb = gradient.rgb(9);\n```\n![rgb](https://raw.githubusercontent.com/mistic100/tinygradient/master/images/rgb.png)\n\n```javascript\n// HSV clockwise interpolation\nconst colorsHsv = gradient.hsv(9);\n```\n![hsv](https://raw.githubusercontent.com/mistic100/tinygradient/master/images/hsv.png)\n\n```javascript\n// HSV counter-clockwise interpolation\nconst colorsHsv = gradient.hsv(9, true);\n```\n![hsv2](https://raw.githubusercontent.com/mistic100/tinygradient/master/images/hsv2.png)\n\nThere are also two methods which will automatically choose between clockwise and counter-clockwise.\n\n```javascript\n// HSV interpolation using shortest arc between colors\nconst colorsHsv = gradient.hsv(9, 'short');\n\n// HSV interpolation using longest arc between colors\nconst colorsHsv = gradient.hsv(9, 'long');\n```\n\nEach method returns an array of TinyColor objects, [see available methods](https://github.com/bgrins/TinyColor/blob/master/README.md#methods).\n\n### Get CSS gradient string\n\nThe `css` method will output a valid W3C string (without vendors prefix) to use with `background-image` CSS property.\n\n```javascript\n// linear gradient to right (default)\nconst gradientStr = gradient.css();\n\n// radial gradient ellipse at top left\nconst gradientStr = gradient.css('radial', 'farthest-corner ellipse at top left');\n```\n\n### Get color at a specific position\n\nReturns a single TinyColor object from a defined position in the gradient (from 0 to 1).\n\n```javascript\n// with RGB interpolation\ncolorAt55Percent = gradient.rgbAt(0.55);\n\n// with HSV interpolation\ncolorAt55Percent = gradient.hsvAt(0.55);\n```\n\n### Reversing gradient\n\nReturns a new instance of TinyGradient with reversed colors.\n\n```javascript\nconst reversedGradient = gradient.reverse();\n```\n\n### Loop the gradient\n\nReturns a new instance of TinyGradient with looped colors.\n\n```javascript\nconst loopedGradient = gradient.loop();\n```\n\n### Position-only stops\n\nI is possible to define stops with the `pos` property only and no `color`. This allows to define the position of the mid-point between the previous and the next stop.\n\n```js\nconst gradient = tinygradient([\n  {color: 'black', pos: 0},\n  {pos: 0.8}, // #808080 will be at 80% instead of 50%\n  {color: 'white', pos: 1}\n]);\n```\n\n\n## License\nThis library is available under the MIT license.\n","_attachments":{},"homepage":"https://github.com/mistic100/tinygradient","bugs":{"url":"https://github.com/mistic100/tinygradient/issues"},"license":"MIT"}