Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "colord", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "👑 A tiny color manipulation and conversion tool", | ||
@@ -23,5 +23,6 @@ "keywords": [ | ||
}, | ||
"main": "./dist/index.js", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./plugins/names": "./dist/plugins/index.js" | ||
"./plugins/*": "./dist/plugins/*.js" | ||
}, | ||
@@ -38,2 +39,3 @@ "files": [ | ||
"test": "jest tests --coverage", | ||
"benchmark": "node --experimental-specifier-resolution node --loader ts-node/esm ./tests/benchmark.ts", | ||
"build": "rm -rf ./dist/* && rollup --config", | ||
@@ -48,2 +50,4 @@ "prepublishOnly": "npm run build" | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"benny": "^3.6.15", | ||
"color": "^3.1.3", | ||
"eslint": "^7.14.0", | ||
@@ -59,3 +63,5 @@ "eslint-config-prettier": "^6.15.0", | ||
"size-limit": "^4.10.1", | ||
"tinycolor2": "^1.4.2", | ||
"ts-jest": "^26.5.4", | ||
"ts-node": "^9.1.1", | ||
"tslib": "^2.1.0", | ||
@@ -62,0 +68,0 @@ "typescript": "^4.2.3" |
@@ -26,3 +26,3 @@ <div align="center"> | ||
<div align="center"> | ||
<strong>colord</strong> is a tiny color manipulation and conversion tool <strong>(is not production ready yet)</strong> | ||
<strong>Colord</strong> is a tiny color manipulation and conversion tool | ||
</div> | ||
@@ -32,6 +32,7 @@ | ||
- 📦 **Small**: Less than 1,5 KB gzipped (3+ times lighter than **color** and **tinycolor**) | ||
- 📦 **Small**: Just **1.5 KB** gzipped ([3+ times lighter](#benchmarks) than **color** and **tinycolor**) | ||
- 📦 **Fast**: [~50% faster](#benchmarks) than **color** and **tinycolor** | ||
- 😍 **Simple**: Chainable API and familiar patterns | ||
- 💪 **Immutable**: No need to worry about data mutations | ||
- 🛡 **Bulletproof**: Well-tested and written in strict TypeScript | ||
- 🛡 **Bulletproof**: Written in strict TypeScript and 100% covered by tests | ||
- 🗂 **Typed**: All types are available out of the box | ||
@@ -44,8 +45,10 @@ - 🏗 **Extendable**: Built-in plugin system to add new functionality | ||
| Name | Bundle size | Bundle size (gzip) | Dependencies | | ||
| ---------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | ||
| **colord** | [![](https://badgen.net/bundlephobia/min/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | [![](https://badgen.net/bundlephobia/minzip/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | [![](https://badgen.net/bundlephobia/dependency-count/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | | ||
| tinycolor2 | [![](https://badgen.net/bundlephobia/min/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | [![](https://badgen.net/bundlephobia/minzip/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | [![](https://badgen.net/bundlephobia/dependency-count/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | | ||
| color | [![](https://badgen.net/bundlephobia/min/color?color=red&label=)](https://bundlephobia.com/result?p=color) | [![](https://badgen.net/bundlephobia/minzip/color?color=red&label=)](https://bundlephobia.com/result?p=color) | [![](https://badgen.net/bundlephobia/dependency-count/color?color=red&label=)](https://bundlephobia.com/result?p=color) | | ||
| Name | ops/sec (millions) | Size | Size (gzip) | Dependencies | | ||
| ---------- | ------------------ | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | ||
| **colord** | **1 692 690** | [![](https://badgen.net/bundlephobia/min/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | [![](https://badgen.net/bundlephobia/minzip/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | [![](https://badgen.net/bundlephobia/dependency-count/colord?color=6ead0a&label=)](https://bundlephobia.com/result?p=colord) | | ||
| tinycolor2 | 998 946 | [![](https://badgen.net/bundlephobia/min/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | [![](https://badgen.net/bundlephobia/minzip/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | [![](https://badgen.net/bundlephobia/dependency-count/tinycolor2?color=red&label=)](https://bundlephobia.com/result?p=tinycolor2) | | ||
| color | 736 610 | [![](https://badgen.net/bundlephobia/min/color?color=red&label=)](https://bundlephobia.com/result?p=color) | [![](https://badgen.net/bundlephobia/minzip/color?color=red&label=)](https://bundlephobia.com/result?p=color) | [![](https://badgen.net/bundlephobia/dependency-count/color?color=red&label=)](https://bundlephobia.com/result?p=color) | | ||
Performance results were generated on a MBP 2019, 2,6 GHz Intel Core i7. To perform these tests, execute `npm run benchmark` in the library folder. | ||
## Roadmap | ||
@@ -52,0 +55,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18976
65
21