4.4.98 • Published 10 months ago

@diotoborg/quia-ad-a v4.4.98

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

@diotoborg/quia-ad-a

NPM version License Downloads Sponsor the author

@diotoborg/quia-ad-a

This is a simple module for applying lean text diff delta patches created by textdiff-create.

❤️🇺🇦

See below.

Usage

Assuming you've correctly installed the npm module with npm i @diotoborg/quia-ad-a [--save|--save-dev]:

const applyPatch = require('@diotoborg/quia-ad-a');

const v1 = 'The sleepy brown fox';
const delta = [
      [0, 4],
      [-1, 6],
      [1, 'quick'],
      [0, 10],
      [1, ' jumps over the lazy dog']
    ];

const v2 = applyPatch(v1, delta);

console.log(v2);

The script will produce the following output:

The quick brown fox jumps over the lazy dog

Additional info

Have a look at textdiff-create for more info.

Credits & support

If you find this piece of software useful, please star the repo, spread the word, sponsor my work and feel free to endorse me on LinkedIn:

Ionut-Cristian Florescu on LinkedIn

Stand with Ukraine

On 24th of February 2022 Russia unlawfully invaded Ukraine. This is an unjustified, unprovoked attack on the sovereignty of a neighboring country, but also an open affront to international peace and stability that has the potential to degenerate into a nuclear event threatening the very existence of humanity. I am a Romanian (EU) citizen, but I stand with Ukraine and I am doing everything in my power to stop this madness. Here's how you can show your support.

LICENSE

Released under ISC.

Uint32Arrayiteratorpnpm9performantmatchreadreal-timelessinternal slota11yvalidTypeBoxbrowserlistcodesfindLastIndexvalidatorhashless mixinsbcryptprotocol-buffersUint8ClampedArraystatelessreact-hooksStreamsauthi18ncall-bindjQuerymonoreporeact poseletiterateURLspinnerio-tsgdprObject.entriessigtermajvWeakMapreverseequalredux-toolkitautoprefixerserializeshebangfastdayjspersistentrobustpropertiesformattinges-shim APInodejseslint-plugincjkregular expression.gitignoreawssesboundECMAScript 5efficientswfterminalhandlersdescriptorstesterclass-validatortrimEndtrimStartemitnameramdanopegetopts3consolefunctionaloutputvpcES2017es6deepcloneloggerquerystringpoint-freefunctionsdescriptionownemrforEachuser-streamschaicollectionexpressionextrafpObservablebddsyntaxerrorchannelminimalchildgradients css3irqawesomesauceignoreYAMLdrages2015groupByArray.prototype.findLastString.prototype.trimObservablesfast-deep-copysettingsesflattenkoreanstateserializerxhrnamesinterruptsES2020wafregexECMAScript 3symlinkfunction.lengthrulestypedtypescriptfile systemgetterString.prototype.matchAllSymbolcalltrimomitreact-hook-formfixed-widthlibphonenumbergroupformgetArrayBuffer#sliceschemaeslintconfigObject.definePropertyfastcopyreactmoduledataViewjsxroute53clientmacosclitransportidleargumentbufferjsdiffECMAScript 2021@@toStringTagmanagerstringifierutilityfullcloudformationStyleSheetwalkauthenticationconcatglobalThissymbolsweakmappromisebootstrap lessinternalArray.prototype.findLastIndexautoscalingdeepcopyECMAScript 7expressRxJSIterator__proto__writableobjectopensslreact animationArray.prototype.flatagentjson-schema-validationqueueMicrotasksetPrototypeOfstylesheetdescriptorInt8ArraycertificateselmvartrimLeftcloudwatchhooksqueryPromisenpmreadablestreamphoneoffsetRegExp.prototype.flagsflatMaputilsortedexitpackage.jsonbyteLengthtermeffect-tsmrukeyimmutablevariablesmakeweaksetfnmatchtestwarningposeslotmoverequestES2023ES2016ttysome256reduxinhigher-ordereventEmitterqueueargvsortsqsenvironmentsoptionAsyncIteratorstylingES7ReactiveXsubprocessvalueglobal this valueESnextisConcatSpreadableinspectmkdirsfpswidthtypeshttpsasciilesscsscloudsearchdirectoryaccessorgetOwnPropertyDescriptorbeanstalkcss nestingcolumnsoptimistes5TypeScriptes-shimseventDispatcherbytepurereplaytslibsigintcallbindponyfillconfigurabledomelectrones7buffersstartercolumncss variablechromiumarktypeprefixreact-componentArrayBuffersnssameValueZerotakeastsideless cssasterisksbindfast-copychromeiterationfetchcss lessObject.valuesRxbabel-corekeystypedarrayUint8ArrayexecutecompareexecfileimmerassertiontrimRightES6Array.prototype.containselasticacheassertsjson-schemahttpextendtypedarraysspawnObject.getPrototypeOfmkdirpES2022indicatorwhichES2015fastclonetspreserve-symlinkselbdotenvtraversedatastructuretacitpruneHyBiFunction.prototype.namejavascriptmobileprotobufstatusestreedependenciesArrayBuffer.prototype.slicevarsWebSockettostringtagUint16Arraybabeleast-asian-widthbrowserslisteveryecmascriptSymbol.toStringTagimportconststylesregularArray.prototype.flattenmkdires2017negativefigletzodsignalsnegative zerostringobjECMAScript 6callbacknodehelperjson-schema-validatorisregexptypeerrorpackage managerES5checkcomputed-typesES3safeinferenceutilsbundlingglobalsformschinesecoreArray.prototype.includesArray.prototype.flatMapdeep-copyObject.keysvalidateconcatMaptranspilematchesequalityJSON
4.4.98

10 months ago

4.4.97

10 months ago

4.4.96

10 months ago

4.4.95

10 months ago

4.4.94

10 months ago

4.4.93

10 months ago

4.4.92

10 months ago

4.4.91

10 months ago

4.4.90

10 months ago

4.4.89

10 months ago

4.4.88

10 months ago

4.4.87

10 months ago

4.3.87

10 months ago

4.3.86

10 months ago

4.3.85

10 months ago

4.3.84

10 months ago

4.3.83

11 months ago

4.3.82

11 months ago

4.3.81

11 months ago

4.3.80

11 months ago

4.3.79

11 months ago

4.3.78

11 months ago

4.3.77

11 months ago

4.3.76

11 months ago

4.3.75

11 months ago

4.3.74

11 months ago

3.3.74

11 months ago

3.3.73

11 months ago

3.3.72

11 months ago

3.3.71

11 months ago

3.3.70

11 months ago

3.3.69

11 months ago

3.3.68

11 months ago

3.3.67

11 months ago

3.3.66

11 months ago

3.3.65

11 months ago

3.3.64

11 months ago

3.3.63

11 months ago

3.3.62

11 months ago

3.3.61

11 months ago

3.3.60

11 months ago

3.3.59

11 months ago

3.3.58

11 months ago

3.3.57

11 months ago

3.3.56

11 months ago

3.3.55

11 months ago

3.3.54

12 months ago

3.3.53

12 months ago

3.3.52

12 months ago

2.3.52

12 months ago

2.3.51

12 months ago

2.3.50

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

1.3.48

12 months ago

1.3.47

12 months ago

1.3.46

12 months ago

1.3.45

12 months ago

1.3.44

12 months ago

1.3.43

12 months ago

1.3.42

12 months ago

1.3.41

12 months ago

1.3.40

12 months ago

1.3.39

12 months ago

1.3.38

12 months ago

1.3.37

12 months ago

1.3.36

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

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