clang-format-node 1.2.5 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,61 +1,55 @@
1
- <!-- markdownlint-disable-next-line -->
2
- # <div align="center"> clang-format-node </div>
1
+ # clang-format-node
3
2
 
4
- <!-- markdownlint-disable-next-line -->
5
- <div align="center">
6
-
7
- ⭐If you like this package, please give it a star on [GitHub](https://github.com/lumirlumir/npm-clang-format-node)!⭐<br>
8
- Your support helps us improve and maintain the project.
9
-
10
- <image src="https://llvm.org/img/LLVMWyvernSmall.png" width="350px" height="220px"/><br /><br />
11
-
12
- ![GitHub Release](https://img.shields.io/github/v/release/lumirlumir/npm-clang-format-node?label=release%20(LLVM%20version)&color=violet&display_name=release)
13
- [![NPM Version](https://img.shields.io/npm/v/clang-format-node)](https://www.npmjs.com/package/clang-format-node)
14
- ![NPM Downloads](https://img.shields.io/npm/dm/clang-format-node)
15
- ![Node Current](https://img.shields.io/node/v/clang-format-node)
3
+ ![GitHub Release](https://img.shields.io/github/v/release/lumirlumir/npm-clang-format-node?label=release%20(LLVM%20version)&color=83ba63&display_name=release)
4
+ [![NPM Version](https://img.shields.io/npm/v/clang-format-node?color=83ba63)](https://www.npmjs.com/package/clang-format-node)
5
+ ![NPM Downloads](https://img.shields.io/npm/dm/clang-format-node?color=83ba63)
6
+ ![Node Current](https://img.shields.io/node/v/clang-format-node?color=83ba63)
16
7
 
17
8
  [![lint](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/lint.yml/badge.svg)](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/lint.yml)
18
9
  [![test](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test.yml/badge.svg)](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test.yml)
19
10
  [![test-cross-platform](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test-cross-platform.yml/badge.svg)](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test-cross-platform.yml)
20
11
  [![codecov](https://codecov.io/gh/lumirlumir/npm-clang-format-node/graph/badge.svg?token=69BF05THA2)](https://codecov.io/gh/lumirlumir/npm-clang-format-node)
21
-
22
12
  [![Maintainability](https://api.codeclimate.com/v1/badges/4bcedf673457b80b9b18/maintainability)](https://codeclimate.com/github/lumirlumir/npm-clang-format-node/maintainability)
23
- [![Static Badge](https://img.shields.io/badge/Official_Documentation-skyblue?style=flat&logo=gitbook&labelColor=gray)](https://clang-format-node.lumir.page)
13
+
14
+ > [!IMPORTANT]
15
+ >
16
+ > If you like this package, please give it a star on [GitHub](https://github.com/lumirlumir/npm-clang-format-node)!⭐<br/>
17
+ > Your support helps us improve and maintain the project.
24
18
 
25
19
  Node wrapper for LLVM Clang's `clang-format` and `git-clang-format` native binaries inspired by [angular/clang-format](https://github.com/angular/clang-format).🐉
26
20
 
27
- <!-- markdownlint-disable-next-line -->
28
- </div>
21
+ ## Documentation
29
22
 
30
- > [!IMPORTANT]
31
- >
32
- > Please participate in the issue regarding the introduction of a **glob pattern**. Click [here](https://github.com/lumirlumir/npm-clang-format-node/issues/14).
23
+ For full documentation, see the [official documentation of the `clang-format-node`](https://clang-format-node.lumir.page).
33
24
 
34
25
  ## Included Packages
35
26
 
36
27
  This repository is maintained as a **monorepo** and includes the following **three** packages.
37
28
 
38
- ### `clang-format-node` [![NPM Version](https://img.shields.io/npm/v/clang-format-node)](https://www.npmjs.com/package/clang-format-node)
29
+ ### `clang-format-node` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-node) | [npm](https://www.npmjs.com/package/clang-format-node)</small>
39
30
 
40
- > [Docs](/docs/02-packages/01-clang-format-node.md) | [Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-node) | [npm](https://www.npmjs.com/package/clang-format-node)
31
+ [![NPM Version](https://img.shields.io/npm/v/clang-format-node)](https://www.npmjs.com/package/clang-format-node)
32
+ ![Node Current](https://img.shields.io/node/v/clang-format-node)
41
33
 
42
34
  Node wrapper for `clang-format` native binary inspired by angular/clang-format. (The **CORE** package.)
43
35
 
44
- ### `clang-format-git` [![NPM Version](https://img.shields.io/npm/v/clang-format-git)](https://www.npmjs.com/package/clang-format-git)
36
+ ### `clang-format-git` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git) | [npm](https://www.npmjs.com/package/clang-format-git)</small>
45
37
 
46
- > [Docs](/docs/02-packages/02-clang-format-git.md) | [Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git) | [npm](https://www.npmjs.com/package/clang-format-git)
38
+ [![NPM Version](https://img.shields.io/npm/v/clang-format-git)](https://www.npmjs.com/package/clang-format-git)
39
+ ![Node Current](https://img.shields.io/node/v/clang-format-git)
47
40
 
48
41
  Node wrapper for `git-clang-format` Python script as a standalone native binary to **allow execution without a Python dependency**.
49
42
 
50
- ### `clang-format-git-python` [![NPM Version](https://img.shields.io/npm/v/clang-format-git-python)](https://www.npmjs.com/package/clang-format-git-python)
43
+ ### `clang-format-git-python` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git-python) | [npm](https://www.npmjs.com/package/clang-format-git-python)</small>
51
44
 
52
- > [Docs](/docs/02-packages/03-clang-format-git-python.md) | [Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git-python) | [npm](https://www.npmjs.com/package/clang-format-git-python)
45
+ [![NPM Version](https://img.shields.io/npm/v/clang-format-git-python)](https://www.npmjs.com/package/clang-format-git-python)
46
+ ![Node Current](https://img.shields.io/node/v/clang-format-git-python)
53
47
 
54
48
  Node wrapper for `git-clang-format` Python script. **This package requires Python3 as a dependency**.
55
49
 
56
50
  ## Supported
57
51
 
58
- See the [supported](/docs/01-introduction/05-supported.md) section of the documentation, which lists the following:
52
+ See the [supported](https://clang-format-node.lumir.page/docs/get-started/supported) section of the documentation, which lists the following:
59
53
 
60
54
  - OS Platforms and Architectures
61
55
  - Node.js Version
@@ -64,34 +58,30 @@ See the [supported](/docs/01-introduction/05-supported.md) section of the docume
64
58
 
65
59
  ## Releases
66
60
 
67
- Each package intends to release a new npm package for every **latest** release of `clang-format` and `git-clang-format`. Automated GitHub Actions check for the latest LLVM release every week, builds all packages using their own pipeline, and makes a pull request. **All processes are automated**. If you are interested in the build process, take a look at [`.github/workflows/llvm-build-bump-pr.yml`](/.github/workflows/llvm-build-bump-pr.yml).
68
-
69
- ## Documentation
70
-
71
- For full documentation, see the [official documentation of the `clang-format-node`](https://clang-format-node.lumir.page) or [`docs` directory of `clang-format-node` repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/docs).
61
+ Each package intends to release a new npm package for every **latest** release of `clang-format` and `git-clang-format`. Automated GitHub Actions check for the latest LLVM release every week, builds all packages using their own pipeline, and makes a pull request. **All processes are automated**. If you are interested in the build process, take a look at [`.github/workflows/llvm-build-bump-pr.yml`](https://github.com/lumirlumir/npm-clang-format-node/blob/main/.github/workflows/llvm-build-bump-pr.yml).
72
62
 
73
63
  ## Contributing (Issues & Pull Requests)
74
64
 
75
65
  Thanks for having attention to this package🙇‍♂️. We appreciate you spending the time to work on these things. Every issue and pull request about bugs, suggestions and the other topics is always welcome!
76
66
 
77
- Please read our [Contributing](/CONTRIBUTING.md) Guides and [Code of Conduct](/CODE_OF_CONDUCT.md) before you work on these things. We also recommend you to read the [Guides on LLVM and `clang-format`](docs/03-others/04-guides-on-llvm-and-clang-format.md) mentioned in the documentation before contributing.
67
+ Please read our [Code of Conduct](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CODE_OF_CONDUCT.md) and [Contributing](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CONTRIBUTING.md) Guides before you work on these things. We also recommend you to read the [Guides on LLVM `clang-format`](http://clang-format-node.lumir.page/docs/further-reading/guides-on-llvm-clang-format) mentioned in the documentation before contributing.
78
68
 
79
69
  ## Code of Conduct
80
70
 
81
- See [Code of Conduct](/CODE_OF_CONDUCT.md).
71
+ See [Code of Conduct](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CODE_OF_CONDUCT.md).
82
72
 
83
73
  ## Change Log
84
74
 
85
- See [Change Log](/CHANGELOG.md).
75
+ See [Change Log](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CHANGELOG.md).
86
76
 
87
77
  ## Versioning
88
78
 
89
- See [Versioning](/docs/04-community/02-versioning.md).
79
+ See [Versioning](http://clang-format-node.lumir.page/docs/community/versioning).
90
80
 
91
81
  ## Security
92
82
 
93
- See [Security](/SECURITY.md).
83
+ See [Security](https://github.com/lumirlumir/npm-clang-format-node/blob/main/SECURITY.md).
94
84
 
95
85
  ## License
96
86
 
97
- [MIT](/LICENSE.md) under [LLVM Apache License 2.0](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT).
87
+ [MIT](https://github.com/lumirlumir/npm-clang-format-node/blob/main/LICENSE.md) under [LLVM Apache License 2.0](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT).
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * @alias `clangFormatNodePath`. See {@link clangFormatNodePath}.
5
5
  * @version `v1.2.0` Initial release.
6
+ * @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
6
7
  */
7
8
  export const clangFormatPath: string;
8
9
  /**
@@ -10,5 +11,6 @@ export const clangFormatPath: string;
10
11
  *
11
12
  * @alias `clangFormatPath`. See {@link clangFormatPath}.
12
13
  * @version `v1.2.0` Initial release.
14
+ * @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
13
15
  */
14
16
  export const clangFormatNodePath: string;
@@ -11,6 +11,7 @@
11
11
  * @throws `Error` Throws an error if the executable binary is not found for the specified OS platform and architecture.
12
12
  * @alias `getClangFormatNodePath`. See {@link getClangFormatNodePath}.
13
13
  * @version `v1.2.0` Initial release.
14
+ * @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
14
15
  */
15
16
  export function getClangFormatPath(osPlatform: string, architecture: string): string;
16
17
  /**
@@ -26,5 +27,6 @@ export function getClangFormatPath(osPlatform: string, architecture: string): st
26
27
  * @throws `Error` Throws an error if the executable binary is not found for the specified OS platform and architecture.
27
28
  * @alias `getClangFormatNodePath`. See {@link getClangFormatNodePath}.
28
29
  * @version `v1.2.0` Initial release.
30
+ * @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
29
31
  */
30
32
  export function getClangFormatNodePath(osPlatform: string, architecture: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clang-format-node",
3
- "version": "1.2.5",
3
+ "version": "1.3.0",
4
4
  "description": "Node wrapper for clang-format native binary inspired by angular/clang-format.🐉",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -50,5 +50,5 @@
50
50
  "test": "node --test",
51
51
  "chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0"
52
52
  },
53
- "gitHead": "f62026dd1e9136e5c760595a2ec9e9fcb351e539"
53
+ "gitHead": "9686d5ba81836f06c9afcce40c4cb9f19292bdec"
54
54
  }