npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@devtea2025/labore-tenetur-in-in

v1.0.0

Published

Downloads

10

Maintainers

tranvuchinh5538tranvuchinh5538

Keywords

eslintconfigebsgraphqlthroattddstructuredClonetimefile systempasswordcss nestingmkdirscolumnsdayjscollection.es6sameValueZeroclifull-widthregexkinesisgenericsArrayBuffer#slicesymlinksstatushookformJSONinstallredux-toolkitsharedarraybufferconcatMaplinewrapajaxconsumemapreducetermbytefunctionalcloudformationspeedapolloworkflowuninstallwhichl10ntypesafegetPrototypeOfastrangeerrorpackagesutilexpresslimitshimfast-copyequalityextendparentObject.entriescompile lessentriescallcorstraversePusheventDispatchersignalspackagereact-hookshasOwntypeiterateBigInt64ArrayrouterrequirebluebirdrequestarktypeargumentyamlArrayBufferReactiveX@@toStringTagString.prototype.trimerrorInt16ArraysettingsobjobjectdeletehandlersstyleguideStreamsjasminestreamsES7stringifieroffsetes8descriptorsjQuerymapvariablesstreamomitawsdirectoryUint8Arrays3setterwritablesigtermcommandercode pointstestercommandES2016windowsdom-testing-libraryfastifyshebangreplaystablecirculareventEmittercomparepropertybrowserslistencryptionwaffindworkervariables in cssjswatcherdependenciesassignsignalcjkfindLastIndexObject.fromEntries256es2017chaittydeeptextrategetnegative zerooptimisttrimdotenves6visualnodees7accessorsimpledbObservablesreadtoolscolumnformatreal-timelesscssbootstrap cssmake dirlinkwatchingbufferawaitfpscomputed-typesecmascriptReflect.getPrototypeOfmodulechinesesharedObjectprefixjesttypedarrayequaltapeECMAScript 2022String.prototype.matchAlldeepclonephonereduceinternal slotbindduplexvpcasyncconfigurableelasticachereusedebugcloudtrailObject.definePropertyRegExp.prototype.flagsonceeslintpluginresolveprettyrgbtypeofrdsInt8ArraytoArrayes-shimsreact-testing-librarysomerapidmatchchromeES5outputTypedArraywalkingownprogressURLhashuuidutilitiesprotocol-buffersiterationtouchinferencefixed-widthfast-deep-clonejsonpipeamazonbootstrap lesscloudfrontES6util.inspectcharacterfast-cloneavamatchesloggingECMAScript 2023dateweblruoptionwgetECMAScript 2017reduxfind-uparraybufferfromfluxloggergetterECMAScript 7$.extendcollectionrecursiveArray.prototype.flatMapinternaldeterministicclonemoveexit-codemochabrowserlook-upmkdirtc39functionsObservablehooksStreamruntimechromiumschemegradients css3flagsspecInt32Arraymimetypeshas-ownexitgradients cssObject.isproxyES2022setPrototypeOfquerystringES2018getOwnPropertyDescriptorstdlibmulti-packageec2ES2017[[Prototype]]ESES2023PromisewhatwgimmercallbindhasclassesreadablekeyMaprmdirArray.prototype.findLaststylesheetkeysshrinkwrapstringifycachepredictablemakeagentfastincludescore-jsfilterArray.prototype.filterhardlinkstypanionroute53checklibphonenumbereast-asian-widthemojiRegExp#flagssyntaxvalidparserforEachendpointansitrimStartidentifiersinspectdefinePropertymetadataprototypesortassertionUint16ArraycryptfindupflattenhttpsefficientmatchAllformcompilerhttpfast-deep-copylogpostcssformserror-handlingsortedsymbolcensorvarsstatemergeloadingtypescriptuptoolkitshamECMAScript 6higher-ordercurlsymbolsHyBiemrlockfileenvsuperstructArray.prototype.includesautoscalingzodcryptowidthutilityargparsextermbundlerparseObject.keysisqueuedataViewECMAScript 3indicatorfull-0react-hook-formcall-bindvalidationclientTypeScriptsqsRxcallboundECMAScript 2020toobjectcoercibleimportexportajvurlcolorsremovecloudwatchclassnamesconnectes5guidform-validationglobArrayBuffer.prototype.slicevalidatebannerflatMaprm -rfperformantnativedeep-clonetslibnegativeflagdynamodbemitcloudsearchrmloadbalancingexpressionCSSStyleDeclarationgdpres-abstractURLSearchParamsspinnerapiescapepositivesidemodulesdefinereadablestreamrandompushpyyamlserializeiammimearraytaskdeep-copyponyfillextensionexectrimLeftnamesES2020byteOffsetcssreducerES8javascriptdebuggerstyled-componentsArray.prototype.findLastIndexless cssbrowserliststatelessYAMLmiddlewareWebSocketUint8ClampedArraytoSortedstylequeueMicrotaskpropertiesscheme-validationcopydomwarninges-shim APIappprotobufinvariantworkspace:*parentsObject.valuessinatraArray.prototype.flattendatastructurereactimmutablenopeauthcolourdescriptionpostcss-pluginObject.assignhelpersfindLastviewpatchfssearchcall-boundquerycontainsFunction.prototype.namees2018package.jsonesbuffersschemanameimportassertclassnamefastclonenested csselectronchanneljapanesesetImmediatesetbcryptarraysUint32ArraypromisesenvironmentssesratelimitspinnerssafeRFC-6455nodejsslicees2015watchFilevaluesSymboleslint-plugintrimEndslotMicrosoftflatWeakSetfastcopyauthenticationextrapackage managerbatchredactdiffBigUint64ArrayenumerablefetchpolyfillECMAScript 2016i18nopengetoptplugineventswriteeslintrobustjshintpathoperating-systemserializationes2016class-validatorvaluegroupBypreserve-symlinksObject.getPrototypeOfisConcatSpreadabletoStringTagcharacterscss lessshellregexpArray.prototype.containssyntaxerrorregularconcatidintrinsicTypeBoxgetintrinsicmkdirpES3typeerrorstringpnpm9sigintyupwordwrapinterruptsargsairbnbweakmapECMAScript 2015hasOwnPropertydependency managerjsdiffprivatecallbackArray.prototype.flatthrottlecss-in-jslazytostringtagbreakES2021picomatchrestfulsymlinktestingwraprm -frdataviewmacosawesomesaucexhrargvoptimizerRxJSswfjsxzeroelbkoreantypesfunctiontyped0less.jsiteratorsequencecreateietypedarraysless compilerirqlivea11ylengthnumbercorelookWeakMapstyleslastSymbol.toStringTagjwtterminaldropwaitenvironmentqsUnderscoreSetcolormonorepolistenerstsconsolelessfigletaccessibilityinpromiseframeworkestreeless mixinsendertestautoprefixerArrayECMAScript 5typed arraylanguageboundmime-dbinstallerquotetelephone

Readme

@devtea2025/labore-tenetur-in-in

github actions npm version codecov License: MIT

:art: Node.js library to compare 2 images without native libs.

| Actual | Expected | Difference | | :---------------------------: | :-------------------------------: | :-----------------------: | | actual | expected | diff |

Install

npm install @devtea2025/labore-tenetur-in-in
const { imgDiff } = require("@devtea2025/labore-tenetur-in-in");

imgDiff({
  actualFilename: "example/actual.png",
  expectedFilename: "example/expected.png",
  diffFilename: "example/diff.png",
}).then(result => console.log(result));

API Usage

imgDiff(opt: ImgDiffOptions): Promise<ImgDiffResult>

Create image differential between two images.

ImgDiffOptions

{
  actualFilename: string;
  expectedFilename: string;
  diffFilename?: string;
  generateOnlyDiffFile?: boolean; // default false
  options?: {
    threshold?: number;   // default 0.1
    includeAA?: boolean;  // default false
  }
}
  • actualFilename - Required - Path to actual image file.
  • expectedFilename - Required - Path to expected image file.
  • diffFilename - Optional - Path to differential image file. If omitted, imgDiff does not output image file.
  • generateOnlyDiffFile - Optional - Generate only files with difference
  • options - Optional - An object to pass through pixelmatch.

ImgDiffResult

{
  width: number;
  height: number;
  imagesAreSame: boolean;
  diffCount: number;
}
  • width - Differential image's width.
  • height - Differential image's height.
  • imagesAreSame - It'll be true only if 2 images are same perfectly.
  • diffCount - The number of differential pixels.

Available format

The following codecs are available for input image files.

  • [x] png
  • [x] jpeg
  • [x] tiff (limited. See https://github.com/Quramy/decode-tiff#compatibility )
  • [ ] bmp

imgDiff detects the input image format from it's extension name. For example, if the input file name ends with ".jpeg", imgDiff attempts to decode in JPEG way regardless of the actual file format.

The output image format is PNG only.

Contribute

PR or issue is welcome :)

Setup

yarn

Test

yarn test

Run benchmark script

yarn run perf

License

MIT License. See LICENSE under this repository.