You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,14 @@
2
2
3
3
*Changelog created using the [Simple Changelog](https://marketplace.visualstudio.com/items?itemName=tobiaswaelde.vscode-simple-changelog) extension for VS Code.*
4
4
5
+
## [1.1.0] - 2024-12-17
6
+
### Added
7
+
- Extended action scope: use pattern(s) to indicate folders and filenames
8
+
9
+
### Changed
10
+
- Changed the argument to represent a filename pattern
Copy file name to clipboardExpand all lines: README.md
+39-8Lines changed: 39 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,17 @@ The `insert-file-tag` package is a Node.js utility that simplifies the process o
9
9
The package works by parsing your document, looking for special HTML-style comment tags that indicate the path to the file you want to insert. For example:
10
10
11
11
```html
12
-
<!--Error processing file: path/to/code.js -->
13
-
14
-
12
+
<!--::insert file="path/to/code.js"-->
13
+
Content of path/to/code.js file will be inserted here.
14
+
<!-- ::/insert -->
15
15
```
16
16
17
17
The content of path/to/code.js will be inserted between these tags when the utility is run. This keeps your main document clean and maintainable while allowing you to include dynamic content from other sources. insert-file-tag supports various file types and can be easily integrated into your build process.
18
18
19
19
## Table of Contents <!-- omit in toc -->
20
20
21
21
-[Getting Started](#getting-started)
22
-
-[Installing](#installing)
22
+
-[Installing](#installing)
23
23
-[Usage](#usage)
24
24
-[Author](#author)
25
25
-[License](#license)
@@ -28,21 +28,52 @@ The content of path/to/code.js will be inserted between these tags when the util
28
28
29
29
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.
30
30
31
-
### Installing
31
+
## Installing
32
+
33
+
```bash
34
+
$ npm i insert-file-tag
35
+
```
36
+
37
+
Or,
38
+
39
+
```bash
40
+
$ npm i insert-file-tag -g
41
+
```
42
+
43
+
This will install the package globally, making it available from the command line. After installing, you can run the `instags` command.
44
+
45
+
```bash
46
+
$ instags -h
47
+
```
48
+
49
+
Or,
50
+
51
+
You can skip installing it the package globally, and use the `npx instags` command.
32
52
33
53
```bash
34
-
$ npm install insert-file-tag
54
+
$ npx insert-file-tag -h
35
55
```
36
56
37
57
## Usage
38
58
39
59
**Basic Usage:**
40
60
41
61
```bash
42
-
npx insert-file-tag input.md output.md
62
+
npx instags -h
63
+
```
64
+
65
+
This will display the help message, showing available options like `-V` (version) -o (output folder, and others. It explains how to use the command.
66
+
67
+
```
68
+
npx instags -V
69
+
```
70
+
This will display the version number of the installed insert-file-tag package.
71
+
72
+
```bash
73
+
$ npx instags README.md
43
74
```
44
75
45
-
This will process `input.md`, insert the content specified by the tags, and write the result to `output.md`.
76
+
This command will process the README.md file. It will search for any <!-- ::insert ... --> tags within README.md. If any are found, the specified file content will be inserted in place of the tag, and the updated content will be written back to README.md. If no insert tags are present, the file will remain unchanged.
0 commit comments