1.7.31 • Published 2 years ago

generic-text-linker v1.7.31

Weekly downloads
10
License
MIT
Repository
github
Last release
2 years ago

QA dsl-toolkit

CI Maintainability Test Coverage FOSSA Statuslerna

Installation

npm install generic-text-linker --save-dev

Motivation

I wanted to have a small generic linker solution for text files so that I can avoid copy and paste, and use it different kind of automation tasks.

Usage

I present the usage of the library with the example below

Example

markdownFile1:

<!-- source begin-->
Your projects badges, or information you want to share in other files without
copy and paste on your own.
<!-- source end-->

markdownFile2:

<!-- destination begin-->
<!-- destination end-->

code:

const {linkerDir} = require('generic-text-linker')
const projectRoot = 'path to the directory where you want to use the linker.'

const source = {
  begin: '<!-- source begin-->',
  end: '<!-- source end-->'
}

const destination = {
  begin: '<!-- destination begin-->',
  end: '<!-- destination end-->'
}

let sourceData = linkerDir(projectRoot, sourceTags.begin, sourceTags.end)

const changedFilesArray = linkerDir(projectRoot, destination.begin, destination.end, sourceData)

This will change the content of markdownFile2

More information

This library helps you find changes modifications between your working and original fixture files. More examples are coming for more information; please check the tests

1.7.31

2 years ago

1.7.21

3 years ago

1.7.22

2 years ago

1.7.24

2 years ago

1.7.25

2 years ago

1.7.26

2 years ago

1.7.27

2 years ago

1.7.28

2 years ago

1.7.29

2 years ago

1.7.30

2 years ago

1.7.19

3 years ago

1.7.20

3 years ago

1.7.16

3 years ago

1.7.17

3 years ago

1.7.18

3 years ago

1.7.11

3 years ago

1.7.12

3 years ago

1.7.13

3 years ago

1.7.14

3 years ago

1.7.15

3 years ago

1.7.10

3 years ago

1.7.9

3 years ago

1.7.8

3 years ago

1.7.2

3 years ago

1.7.1

4 years ago

1.6.62

5 years ago

1.6.60

5 years ago

1.6.59

5 years ago

1.6.55

6 years ago

1.6.54

6 years ago

1.6.53

6 years ago

1.6.52

6 years ago

1.6.51

6 years ago

1.6.50

6 years ago

1.6.42

6 years ago

1.6.41

6 years ago

1.6.39

6 years ago

1.6.37

6 years ago

1.6.36

6 years ago

1.6.35

6 years ago

1.6.34

6 years ago

1.6.33

6 years ago

1.6.32

6 years ago

1.6.30

6 years ago

1.6.29

6 years ago

1.6.27

6 years ago

1.6.24

6 years ago

1.6.18

6 years ago

1.6.17

6 years ago

1.6.15

6 years ago

1.6.14

6 years ago

1.6.13

6 years ago

1.6.12

6 years ago

1.6.10

6 years ago

1.6.9

6 years ago

1.6.8

6 years ago

1.6.7

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.0

6 years ago

1.5.19

6 years ago

1.5.18

6 years ago

1.5.17

6 years ago

1.5.16

6 years ago

1.5.15

6 years ago

1.5.11

6 years ago

1.5.10

6 years ago

1.5.9

6 years ago

1.5.8

6 years ago

1.5.7

6 years ago

1.5.6

6 years ago

1.5.4

6 years ago

1.5.0

6 years ago

1.4.11

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.9

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago