3.3.0 • Published 6 years ago

ctx-cli v3.3.0

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
6 years ago

CTX CLI

"cheerio": "0.22.0",

Installation

npm install ctx-cli -g

Transform

ctx transform ./my-project.zip ./export_path

ctx-export

Export the current element and its children to a file. The path is relative to the export path.

ctx-export="./nodes/export/view.html"

Additionally you can use ctx-map="mapping_id" to ensure that only the elements containing the mapping id will be replaced.

ctx-edit

Edit allows you to call any cheerio functions on the current element. See the cheerio documentation at https://github.com/cheeriojs/cheerio. The "this" variable in the edit function is the cheerio object of the current element.

ctx-edit="this.remove()"

ctx-toggle

Toggle will wrap the element in an if block using the logic provided in the attributes value.

ctx-toggle="true && variable == 'true'"
3.3.0

6 years ago

3.2.7

6 years ago

3.2.6

6 years ago

3.2.5

6 years ago

3.2.4

6 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.14

6 years ago

3.1.13

6 years ago

3.1.12

6 years ago

3.1.11

6 years ago

3.1.10

6 years ago

3.1.9

6 years ago

3.1.8

6 years ago

3.1.7

6 years ago

3.1.6

6 years ago

3.1.5

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago