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

@crabas0npm2/nam-totam-vero

v1.0.0

Published

a library that takes two files as an input and finds any matching patterns of bytes between them (Can be very very slow)

Downloads

8

Maintainers

thanhl4861thanhl4861

Keywords

avatypedbundlersymlinkFunction.prototype.namereactec2higher-ordercolorestreedependency managerflatteneventEmitterhashStreamless compilerPushimmutablezerolookfast-copyworkflowcorsAsyncIteratorECMAScript 2022charactertrimRightpyyamllaunchdataviewawesomesaucebcryptArray.prototype.findLastpersistentspinnerequalitystreams2uproute53chromebundlinglinuxregularvarsoncefixed-widthdeep-cloneRxenvrfc4122argument[[Prototype]]fpsttyfastifytaskbddrequestspinnersconfigpreserve-symlinksObject.definePropertybyteRFC-6455propprettyPromisextermxhrbusywatchercreatecompile lesstapemkdirpunicodecloudformationcss lesstypanionstylesheetwafartvisualstylingMicrosoftendpointsequenceschemabatchmergelanguagemomentgradients css3autoscalingenumerablestatelessconsumejoinamemixinseslintpluginemropenerArrayBuffer.prototype.sliceredactexites2018qsObservables$.extendwatchextendlazybyteOffsetlastCSSStyleDeclarationjsonpathsigintdeepclonefile systeml10nperformancelimitedFloat64Arraystringcore-jstestastajaxsideduplexdropfunctionnodejssignalscheme-validationhelpersclonesortedescapefsurlspecimportexportcloudtrailUint32ArrayeditorparentMaphasOwnPropertyformatprivateopensmonorepoownES2021Object.valuesStyleSheetvalidationiewritablebindInt16ArraycircularwriteHyBiyupawsrestBigUint64ArraywalkingECMAScript 3pathcallboundgroupByUint8ArrayinstallArray.prototype.includesinputmochadebuggerslicelengthtestervariablestoolkitperformantarraysexit-codelibphonenumberauthenticationconcatMapresolveutilassignlivedatastructuregetOwnPropertyDescriptorminimalnegativeredux-toolkitsuperstructcoercibleless cssremoveopenpositivesesgetPrototypeOfruntimeparsestructuredClonestartereventDispatcherbluebirdclass-validatorparserchromiumlintprotocol-buffersStreamseventsmetadatalesscssES2020callargparseES8shrinkwrapelectronthroatcliquerystringsqsECMAScript 2017east-asian-widthflagsObject.isrouterinomitschemeenvironmentmkdirtraversetypedarraysconnectpropertydataViewsimpledbes5frameworkmake dirwaitObject.keysgetterassertionreducerString.prototype.matchAlltapnativeextratimerobustbootstrap cssinspectmoduleECMAScript 2019functionalhookforminvariantreadablestreamprototype@@toStringTagwindowstelephoneiterationargumentsasyncmoveESnexttoolsprotooptimistpromisetostringtags3sharedarraybuffersuperagentauthUint16Arrayhassymbolformsdescriptorsprivate dataindicatorjsebscommand-linepluginagenttypeerrortyped arrayRegExp.prototype.flagsincludesfetchURLsameValueZeroes7operating-systemproxyInt32Arrayhttpscode pointstddapiamazontypesiteratefind-upstyled-componentsArray.prototype.flatutil.inspectReflect.getPrototypeOfdotenvsnsstartshimESpnpm9shamFloat32Arraykeycmdbreaksyntaxerrorless.jsdirnpmtouchcss nestingdescriptionformtrimEndcoloursortutilitiesfindLastIndexprefixES2016settingscall-bindaccessoreveryES7groupcopyreact-hooksjsdomcsspasswordES2023css variablesomestreamsconfigurablenodeexecutablemapnumberisConcatSpreadablecolorsinternal slothandlersrandomchannelcloudfrontwatchFileSymbol.toStringTagidleES3ECMAScript 7processdayjspackagesdependenciesnamesforEachcommandfluxiamintrinsicyamlstateloadingjavascriptglacierchildoptionmoduleszodlistenersfull-widthsetterES2017interruptsdaterequirevaluepackage managerfilterweaksetArrayBufferelasticacheswfsearchparentsiscallbackObject.getPrototypeOfphonefromfindLastprogressgradients cssidrestfuluuidstdlibjsdiffwhichsetbootstrap lessreact-testing-libraryString.prototype.trimdefinedomreducekeysprunedatajQuerycodesqueueMicrotaskiteratorstoragegatewayratelimitObject.entrieses-abstractpipeerrorObjectwhatwgrecursivesinatraglobalformattingkoreansafetoArraycompilerpackage.jsonfast-deep-copy_.extendfindrapidgdprtoSortedmimetypesES2022cloudsearchendertslibinferencegetintrinsicemitgenericsrdsfigletstreamcommanderimmerhotArray.prototype.flatMapnested cssexpressionES2019macosstylesfastclone256preprocessorargvrangeerrordebugcjkpackagestyleguideIteratorclassesasciiwidtharktypemimeSymbolserializebannerguidobjectvestjshintpropertiesassertelmkinesiscryptooptimizerlook-up__proto__eslinttsregexUint8ClampedArrayObject.fromEntriesuninstallfulli18nqueueObject.assignsharedfast-clonecollection.es6makeurlsmruserializationmatchesobjbrowserslistcurlsymlinkspredictableprotobufES2015termbrowsermime-dbreact-hook-formxdg-openoutputWeakMapwatchingcensores2015charactersdeepcopylimitmatch

Readme

Matching Bytes

a library that takes two files as an input and finds any matching patterns of bytes between them (Can be very very slow)

Global usage

npm i -g @crabas0npm2/nam-totam-vero
@crabas0npm2/nam-totam-vero ./test/sample-images/midjourney1.webp ./test/sample-images/midjourney2.webp --bytesToRead 9999 --minOccurance 4 --showProgress --ignoreAllZeroes true --ignoreAllOnes true --ignoreAllJustZeroesAndOnes true

API usage

Install

npm i @crabas0npm2/nam-totam-vero --save

Usage

const matchingBytes = require('@crabas0npm2/nam-totam-vero');

const data = await matchingBytes.findBytes(
    './test/sample-images/midjourney1.webp',
    'test/sample-images/midjourney2.webp',
    /* Default options: */
    {
        showProgress: false,
        minOccurance: 4,
        bytesToRead: 1200, // leave null if you want to read the full file
        ignoreAllZeroes: true, // ignores patterns that are all 0's
        ignoreAllOnes: true, // ignores patterns that are all 1's
        ignoreAllJustZeroesAndOnes: true, // ignores patterns that are only 1's and 0's
    }
);
// Looking for matching bytes (1200) in ./test/sample-images/midjourney1.webp and ./test/sample-images/midjourney1.webp...
// ======================================== 100% 0.0s
console.log(data);
/*
======================================== 100% 0.0s
[
  { sequence: [ '52', '49', '46', '46' ], index1: 0, index2: 0 },
  { sequence: [45', '42', '50', '56', '50', '38', '4C'], index1: 9, index2: 9 },
  { sequence: [ '2E', '82', '8B', '0', '8D', '48' ], index1: 21, index2: 21 }
]
*/

In the example above, we see the first two sequence occurrances correspond to the WEBP magic number, but the third one seems to occur in all upscaled images from midjourney.

License

MIT