4.8.84 • Published 11 months ago

@hishprorg/ad-dolore v4.8.84

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Get Color Palette

Fork of Color Thief v2.4.0, with the only difference being increasing the maximum number of colors in a palette from 20 to 50.

Grab the color palette from an image using just Javascript.Works in the browser and in Node.

View the demo page for examples, API docs, and more.


Contributing

Project structure

  • build/ - Simple script that copies and renames files into the /dist folder.
  • cypress/ - Browsers tests.
  • dist/ - Generated distribution files created by microbundle package and a couple of files copied via build script.
  • examples/ - CSS, JS, and Images for the index.html example page.
  • src/color-thief-node.js - Source for the Node (commonjs) compatible version of the script.
  • src/color-thief.js - Source for the browser (ES6, AMD, Global var) compatible version of the script.
  • src/core.js - Functions shared between the node and browser versions of the script.
  • test/ - Node integration tests. Uses Chai.
  • index.html - Example page.

Running tests

There are two sets of tests:

  1. Browser tests run with Cypress
  2. Node tests run with Karma and utilizing Mocha

To run both the browser and Node tests:

  • npm run dev to start local server.
  • npm run test

To run just the browser tests with the Cypress UI:

  • npm run dev to start local server
  • npm run test:browser

To run just the Node tests:

  • npm run test:node

Adding tests

  • Update cypress/test-pages/index.html as needed or create a new test page if you need new examples.
  • Add new tests in cypress/integration/apis_spec.js

Making a new release

  • Merge dev into master
  • Pull down master
  • Update version number in src/color-thief.js and package.json
  • Run npm run build
  • Commit and push built files back up to master
  • Create a new Github release along with tag. Naming convention for both v2.8.1
  • npm publish
JSON-SchemavisualtslibtapinferenceECMAScript 2022eventses-shim APIrapidprivate datatouchwidthrequirecolorswaitBigUint64ArrayclasseswritableplugintrimStartserialize6to5bddECMAScript 2015ES2015RegExp#flagsprotocol-buffersrobustlocationutilsdom-testing-librarycurriedmanagerflagsemojiECMAScript 2021clientArray.prototype.flatMapidansiclassnamesperformancefastcopyes2015forEachdefineenumerableformseveryistanbulglobalReflect.getPrototypeOfCSSbannerfind-uphooksavatypeddependency managerglobal this valueES2017Array.prototype.filterremoveregexWebSocketfixed-widthequalityglobal objecttrimRightrouterloadingStreamvariablescliMicrosofthelpersyupObservablepackage managerredirectES2016ECMAScript 2023east-asian-widthfunctionalimportexportinstrumentationdirectoryArray.prototype.flattenreworkpopmotiondotenvarraybuffercloudformationswftypanionrestfultrimEndjapanesetranspilegroupByfile systeminternalrulesstringifystyleebsdata.envefficientproxyparent@@toStringTagshimintrinsicglobalsreactchannelhas-ownlogs3parsermergeObject.getPrototypeOffilebrowserlistpipecorecall-bindloggerPromisesharedinternal slotinputenvformattingArrayBuffer.prototype.sliceagentUint32ArraydeepclonearraysurlslotfpramdaomitHyBisimpledbcloudsearchJSONfull-widthpackagesjQueryprivatees2018validatorprototypetakerssexpressfast-clonedataViewartfunctionsYAMLairbnbsetObject.keysatomUint16Arraycommandbabel-coreRFC-6455rangeerrorrgbpureindicatordeletees-shimsscheme-validationconcatloadbalancingmatcheswalkspinnerfeedpatchES8globnamesInt16ArraygetclassnamepropcurlmanipulationestreemkdirpsameValueZero256__proto__valueskinesissafedeepstoragegatewaymatchAllstarterasterisksarktypelettoReversedcryptohasphonesharedarraybufferInt32ArrayforkreversediambyteOffsetawsdeepcopycensorbufferfolderieidentifiersi18nStyleSheetcoveragetraverseSystem.globaleslint-plugincjkcolorcopypyyamlcore-jscoercibleString.prototype.matchAllhttpshamInt8ArrayStreamstestkoreanworkerfindLastinstallresolvejsonschemanopediffWebSocketsjoichromiumECMAScript 2017ObservablesReactiveXaccessibilityroutingcsscircularthreeelbtranspilercodesconsolewgettester-0dataviewreducees5trimLeftdomserializernegativeenvironmentsiteratetestingeslintamazonfindupxhrregular expressionstoStringTagtimefantasy-landRegExp.prototype.flagsdependenciesfullwidthemitmonorepoES2019jestcolumnspackage.jsonworkspace:*shellURLautoprefixerhashflattenec2es6WeakSetgesturesexecutenegative zeroescapeESes7mobileio-tsassertslinkObject.fromEntriesdireslintconfigqueueMicrotaskpushlockfilecontainsfast-deep-cloneutilbyteobjectES2023getoptglobalThistoolkitdateoptionserializationregular-expressioncallboundsortES2022user-streamsapiajaxoptimistprettyutilityhelperObjectrdsvestendpointrm -rfFloat32ArraysyntaxerrorroutebrowserstablequeueURLSearchParamsmakesometoSortedvarses-abstracttapeterminalcommanderECMAScript 5reducerrestObject.assignelasticachelook-upsidedebuggerstreamsArray.prototype.findLastIndexextrasymlinksrecursivedayjsespreel10nbyteLengthrequestFunction.prototype.namemodulesframeworkxtermfindLastIndexyamlbundlingtypeofrfc4122flatMaplook$.extendchaicloudtrailstyled-componentspoint-freesinatraasyncRxJStacitECMAScript 2020subprocesslastspawnprocessclonedragUint8ClampedArrayFloat64Arrayutilitiesform-validationwebframerqueryinspectdescriptorbabelconcatMapselfappquoteoffsetregexpES2020packagewritesetImmediateschemanativegettersnsenvironmentcomputed-typespicomatchtransportsource mapnumberislocalstyleguidemapreduceECMAScript 2016weakmaplistenerses2017es8Object.valuesexecfilermrm -frcommand-linegraphqlshrinkwrapdynamodbfunction.lengthfigletmomentwaapiArray_.extendTypedArraylanguagecheckbines2016pathfrom.gitignoreuninstallexpressionlibphonenumberprogressdeep-copyECMAScript 2019compareArrayBuffer#sliceargvminimalstringifierpromisebinarydropjson-schema-validatorPushfastclonevalidateArray.prototype.containsgitignoreenderprotonodejsawesomesaucejasminebeanstalkchineseeventEmitterstringsettingsassignvaluevalidationtypedarraysinstallerfindposeimmergetPrototypeOfjson-schemasqsequalchildruntimeformasciilengthkeysES5fast-deep-copyfastponyfilltostringtagstream[[Prototype]]springES2018setterrandomtoolscharactersconsumequerystringprefixfetchhasOwnshebangString.prototype.trimconfigurableredux-toolkitcode pointsRxprotobufwalkingreact-testing-librarypolyfillcompilereventDispatcherpropertiestransformtypenameexecparentsvalidObject.entriesgdprargstssymbolsuperstructecmascriptmkdirstypedarrayeslintplugindebugstylingutil.inspectnpmgetOwnPropertyDescriptorzeroerrorjson-schema-validationconsta11yacornimmutableregularSetregular expressioncallfiltertoArrayanimationmkdirBigInt64ArrayassertCSSStyleDeclarationUint8ArrayObject.isdescriptionwarningreadisConcatSpreadablesesarraykarmaES7superagentfsECMAScript 6ECMAScriptviewaccessordescriptorscolumnTypeBoxstylesperformanttermwhichslicegroupbinariesesworkflowguidformatfastifyuuidentriesdeep-clonetyped arrayspeedzodTypeScriptmetadatatypesafepostcss-plugintc39idleIteratorchromegenericsreadabletypescriptArray.prototype.includesroute53textpostcsshasOwnPropertypinoemrnpmignoresearchspecautoscalingpruneSymbolassertionUnderscorereact poseES2021functionjsonmapbusytelephoneignoreArray.prototype.flatqsmovepropertycall-boundmulti-packageajv3ddeterministicwafflatharmonyAsyncIteratorboundreversecollectioniteratorReactiveExtensionsbundlercss-in-jseffect-tsinvariantpositivetypeerrorlintsyntaxargument
4.8.84

11 months ago

4.8.83

11 months ago

4.8.82

11 months ago

4.7.82

11 months ago

4.7.81

11 months ago

4.7.80

11 months ago

4.7.79

11 months ago

3.7.79

11 months ago

3.7.78

11 months ago

3.7.77

11 months ago

3.7.76

11 months ago

3.7.75

11 months ago

3.7.74

11 months ago

3.7.73

11 months ago

3.7.72

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.7.69

12 months ago

3.7.68

12 months ago

3.7.67

12 months ago

3.7.66

12 months ago

3.7.65

12 months ago

3.7.64

12 months ago

3.7.63

12 months ago

3.7.62

12 months ago

3.7.61

12 months ago

3.7.60

12 months ago

3.7.59

12 months ago

3.7.58

12 months ago

3.7.57

12 months ago

3.7.56

12 months ago

3.7.55

12 months ago

3.7.54

12 months ago

3.7.53

12 months ago

3.7.52

12 months ago

3.7.51

12 months ago

3.7.50

12 months ago

3.7.49

1 year ago

3.7.48

1 year ago

3.7.47

1 year ago

3.7.46

1 year ago

3.7.45

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.7.42

1 year ago

3.7.41

1 year ago

3.6.41

1 year ago

3.6.40

1 year ago

2.6.40

1 year ago

2.6.39

1 year ago

2.6.38

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

1.4.17

1 year ago

1.4.16

1 year ago

1.3.16

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago