package.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. {
  2. "name": "colord",
  3. "version": "2.9.3",
  4. "description": "👑 A tiny yet powerful tool for high-performance color manipulations and conversions",
  5. "keywords": [
  6. "color",
  7. "parser",
  8. "convert",
  9. "tiny",
  10. "hex",
  11. "rgb",
  12. "hsl",
  13. "hsv",
  14. "hwb",
  15. "lab",
  16. "lch",
  17. "xyz",
  18. "css",
  19. "color-names",
  20. "a11y",
  21. "cmyk",
  22. "mix",
  23. "minify",
  24. "harmonies"
  25. ],
  26. "repository": "omgovich/colord",
  27. "author": "Vlad Shilov <omgovich@ya.ru>",
  28. "license": "MIT",
  29. "sideEffects": false,
  30. "main": "./index.js",
  31. "module": "./index.mjs",
  32. "exports": {
  33. ".": {
  34. "types": "./index.d.ts",
  35. "import": "./index.mjs",
  36. "require": "./index.js",
  37. "default": "./index.mjs"
  38. },
  39. "./plugins/a11y": {
  40. "types": "./plugins/a11y.d.ts",
  41. "import": "./plugins/a11y.mjs",
  42. "require": "./plugins/a11y.js",
  43. "default": "./plugins/a11y.mjs"
  44. },
  45. "./plugins/cmyk": {
  46. "types": "./plugins/cmyk.d.ts",
  47. "import": "./plugins/cmyk.mjs",
  48. "require": "./plugins/cmyk.js",
  49. "default": "./plugins/cmyk.mjs"
  50. },
  51. "./plugins/harmonies": {
  52. "types": "./plugins/harmonies.d.ts",
  53. "import": "./plugins/harmonies.mjs",
  54. "require": "./plugins/harmonies.js",
  55. "default": "./plugins/harmonies.mjs"
  56. },
  57. "./plugins/hwb": {
  58. "types": "./plugins/hwb.d.ts",
  59. "import": "./plugins/hwb.mjs",
  60. "require": "./plugins/hwb.js",
  61. "default": "./plugins/hwb.mjs"
  62. },
  63. "./plugins/lab": {
  64. "types": "./plugins/lab.d.ts",
  65. "import": "./plugins/lab.mjs",
  66. "require": "./plugins/lab.js",
  67. "default": "./plugins/lab.mjs"
  68. },
  69. "./plugins/lch": {
  70. "types": "./plugins/lch.d.ts",
  71. "import": "./plugins/lch.mjs",
  72. "require": "./plugins/lch.js",
  73. "default": "./plugins/lch.mjs"
  74. },
  75. "./plugins/minify": {
  76. "types": "./plugins/minify.d.ts",
  77. "import": "./plugins/minify.mjs",
  78. "require": "./plugins/minify.js",
  79. "default": "./plugins/minify.mjs"
  80. },
  81. "./plugins/mix": {
  82. "types": "./plugins/mix.d.ts",
  83. "import": "./plugins/mix.mjs",
  84. "require": "./plugins/mix.js",
  85. "default": "./plugins/mix.mjs"
  86. },
  87. "./plugins/names": {
  88. "types": "./plugins/names.d.ts",
  89. "import": "./plugins/names.mjs",
  90. "require": "./plugins/names.js",
  91. "default": "./plugins/names.mjs"
  92. },
  93. "./plugins/xyz": {
  94. "types": "./plugins/xyz.d.ts",
  95. "import": "./plugins/xyz.mjs",
  96. "require": "./plugins/xyz.js",
  97. "default": "./plugins/xyz.mjs"
  98. },
  99. "./package.json": "./package.json"
  100. },
  101. "files": [
  102. "*.{js,mjs,ts,map}",
  103. "plugins/*.{js,mjs,ts,map}"
  104. ],
  105. "types": "index.d.ts",
  106. "scripts": {
  107. "lint": "eslint src/**/*.ts",
  108. "size": "npm run build && size-limit",
  109. "check-types": "tsc --noEmit true",
  110. "test": "jest tests --coverage",
  111. "benchmark": "tsc --outDir bench --skipLibCheck --esModuleInterop ./tests/benchmark.ts && node ./bench/tests/benchmark.js && rm -rf ./bench",
  112. "build": "rm -rf ./dist/* && rollup --config",
  113. "release": "npm run build && cp *.json dist && cp *.md dist && npm publish dist",
  114. "check-release": "npm run release -- --dry-run"
  115. },
  116. "dependencies": {},
  117. "devDependencies": {
  118. "@size-limit/preset-small-lib": "^4.10.1",
  119. "@types/jest": "^26.0.22",
  120. "@typescript-eslint/eslint-plugin": "^4.19.0",
  121. "@typescript-eslint/parser": "^4.19.0",
  122. "ac-colors": "^1.4.2",
  123. "benny": "^3.6.15",
  124. "chroma-js": "^2.1.1",
  125. "color": "^3.1.3",
  126. "eslint": "^7.14.0",
  127. "eslint-config-prettier": "^6.15.0",
  128. "eslint-plugin-prettier": "^3.1.4",
  129. "glob": "^7.1.6",
  130. "jest": "^26.6.3",
  131. "prettier": "^2.2.0",
  132. "rollup": "^2.43.1",
  133. "rollup-plugin-terser": "^7.0.2",
  134. "rollup-plugin-typescript2": "^0.30.0",
  135. "size-limit": "^4.10.1",
  136. "tinycolor2": "^1.4.2",
  137. "ts-jest": "^26.5.4",
  138. "ts-node": "^9.1.1",
  139. "tslib": "^2.1.0",
  140. "typescript": "^4.2.3"
  141. },
  142. "jest": {
  143. "verbose": true,
  144. "transform": {
  145. "^.+\\.ts$": "ts-jest"
  146. }
  147. },
  148. "eslintConfig": {
  149. "plugins": [
  150. "prettier"
  151. ],
  152. "extends": [
  153. "eslint:recommended",
  154. "plugin:@typescript-eslint/eslint-recommended",
  155. "plugin:@typescript-eslint/recommended",
  156. "plugin:prettier/recommended",
  157. "prettier/@typescript-eslint"
  158. ]
  159. },
  160. "prettier": {
  161. "printWidth": 100
  162. },
  163. "size-limit": [
  164. {
  165. "path": "dist/index.mjs",
  166. "import": "{ colord }",
  167. "limit": "2 KB"
  168. },
  169. {
  170. "path": "dist/plugins/a11y.mjs",
  171. "limit": "0.5 KB"
  172. },
  173. {
  174. "path": "dist/plugins/cmyk.mjs",
  175. "limit": "1 KB"
  176. },
  177. {
  178. "path": "dist/plugins/harmonies.mjs",
  179. "limit": "0.5 KB"
  180. },
  181. {
  182. "path": "dist/plugins/hwb.mjs",
  183. "limit": "1 KB"
  184. },
  185. {
  186. "path": "dist/plugins/lab.mjs",
  187. "limit": "1.5 KB"
  188. },
  189. {
  190. "path": "dist/plugins/lch.mjs",
  191. "limit": "1.5 KB"
  192. },
  193. {
  194. "path": "dist/plugins/minify.mjs",
  195. "limit": "0.6 KB"
  196. },
  197. {
  198. "path": "dist/plugins/mix.mjs",
  199. "limit": "1 KB"
  200. },
  201. {
  202. "path": "dist/plugins/names.mjs",
  203. "limit": "1.5 KB"
  204. },
  205. {
  206. "path": "dist/plugins/xyz.mjs",
  207. "limit": "1 KB"
  208. }
  209. ]
  210. }