1.6.64 • Published 11 months ago

@zitterorg/quas-autem v1.6.64

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

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 @zitterorg/quas-autem
@zitterorg/quas-autem ./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 @zitterorg/quas-autem --save

Usage

const matchingBytes = require('@zitterorg/quas-autem');

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

Float32Arraysortedsuperagenttestspawnamazoncodeshardlinksenderes8picomatchrms3classeseast-asian-widthinternal sloterrorjoisuperstructECMAScript 2022tc39Array.prototype.flatMapworkflowsubprocesskeystypedarraysdependencieshigher-ordercolouruser-streamsentriesECMAScriptmaplrutacitjsxsetterpolyfilltransformfileslicereact-hooks6to5esuninstallvalidaterobustregexfolderkinesispyyamlschemaperformantanimationlastweakmapsharedconstbufferprunemkdirpUint16Arraycode pointstypescriptAsyncIteratorchromevalidserializationsymlinksbddjavascriptdefineSystem.globalReactiveExtensionsexpressiontranspilerdeep-copybrowsersyntaxgroupBytextsnscopyroutersettingschinesees7ObservableasciiArrayBuffer#slicermdirfunction.lengthsource mapproxyEStypeajvutilitiesString.prototype.matchAllcomparelook-uppropertiespackagescloudsearches2018functioncloudtrailrestfulpureECMAScript 2015configfetchglobswfmkdirsreusetestercurlwaapiconcatMaprssworkerclassnamesES6deepcopystylesenumerablewebStreamscensorelbpackageequalityvariablestypesaferegularansireal-timeartoutputsymbolcreatetrimLeftexecfilearraybufferdataViewshambusycommanderprogressstylingdeterministicgetintrinsici18nprefixdeeplookcollectionquote256feedserializeArray.prototype.findLastIndexJSONrecursivefastifymakejsdomstreamtakeinferencewidthobjectvalueclass-validatortoolkitbrowserslistpipeisConcatSpreadablecirculareffect-tsfilterapifunctionsimmutable$.extend_.extendcloudfronttestingclihas-owncolorstyleagentassignfixed-widthchildwritesameValueZerofind-upeslintremoveObject.valuesnegative zeroArraywaitviewformsECMAScript 2018WeakSetregexpstyleguideunicodebinariesspinnersresolve3dcoreInt8ArrayTypedArraydeepcloneString.prototype.trimReactiveXassertiontrimRightObject.definePropertytslibreact-hook-formjshintsinatracall-boundtostringtagflattentrimStartmkdirframerroute53mrusyntaxerrorBigInt64ArrayemittoolswarningbinaryprettyRegExp#flagsoffsetObject.isvalidatorlistenersloadingtypedarraypinoextracollection.es6coerciblehashemojiutilreact posediffselfenvironmentfast-deep-copycallboundwhatwgshebangnpmnegativecore-jsuuidstyled-componentsprotocol-buffersnativedatadropintrinsicFloat64Arraypackage.jsonFunction.prototype.namepositiveforEachefficientcloudformationES3es-shim APIStreamfast-deep-clonewhichcolumns
1.6.64

11 months ago

1.6.60

12 months ago

1.6.62

12 months ago

1.6.61

12 months ago

1.6.63

11 months ago

1.6.57

12 months ago

1.6.59

12 months ago

1.6.58

12 months ago

1.6.55

12 months ago

1.6.54

12 months ago

1.6.56

12 months ago

1.3.53

12 months ago

1.5.54

12 months ago

1.5.53

12 months ago

1.4.53

12 months ago

1.3.50

12 months ago

1.3.51

12 months ago

1.3.52

12 months ago

1.3.25

1 year ago

1.3.28

1 year ago

1.2.16

1 year ago

1.3.29

1 year ago

1.2.17

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.2.20

1 year ago

1.3.30

1 year ago

1.3.35

1 year ago

1.2.23

1 year ago

1.3.36

1 year ago

1.2.24

1 year ago

1.3.33

1 year ago

1.2.21

1 year ago

1.3.34

1 year ago

1.2.22

1 year ago

1.3.39

1 year ago

1.1.16

1 year ago

1.3.37

1 year ago

1.2.25

1 year ago

1.3.38

1 year ago

1.3.42

1 year ago

1.3.43

1 year ago

1.3.40

1 year ago

1.3.41

1 year ago

1.3.46

12 months ago

1.3.47

12 months ago

1.3.44

1 year ago

1.3.45

1 year ago

1.3.48

12 months ago

1.3.49

12 months ago

1.1.15

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.10

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

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