4.4.98 • Published 1 year ago

@diotoborg/quia-ad-a v4.4.98

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

4.4.97

1 year ago

4.4.96

1 year ago

4.4.95

1 year ago

4.4.94

1 year ago

4.4.93

1 year ago

4.4.92

1 year ago

4.4.91

1 year ago

4.4.90

1 year ago

4.4.89

1 year ago

4.4.88

1 year ago

4.4.87

1 year ago

4.3.87

1 year ago

4.3.86

1 year ago

4.3.85

1 year ago

4.3.84

1 year ago

4.3.83

1 year ago

4.3.82

1 year ago

4.3.81

1 year ago

4.3.80

1 year ago

4.3.79

1 year ago

4.3.78

1 year ago

4.3.77

1 year ago

4.3.76

1 year ago

4.3.75

1 year ago

4.3.74

1 year ago

3.3.74

1 year ago

3.3.73

1 year ago

3.3.72

1 year ago

3.3.71

1 year ago

3.3.70

1 year ago

3.3.69

1 year ago

3.3.68

1 year ago

3.3.67

1 year ago

3.3.66

1 year ago

3.3.65

1 year ago

3.3.64

1 year ago

3.3.63

1 year ago

3.3.62

1 year ago

3.3.61

1 year ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.3.57

1 year ago

3.3.56

1 year ago

3.3.55

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

3.3.52

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

1.3.48

1 year ago

1.3.47

1 year ago

1.3.46

1 year ago

1.3.45

1 year ago

1.3.44

1 year ago

1.3.43

1 year ago

1.3.42

1 year ago

1.3.41

1 year ago

1.3.40

1 year ago

1.3.39

1 year ago

1.3.38

1 year ago

1.3.37

1 year 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