@loukotal/devmoji-rs 0.1.3 → 0.1.5

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.
Files changed (3) hide show
  1. package/README.md +30 -0
  2. package/bin/cli.js +1 -1
  3. package/package.json +10 -9
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # devmoji-rs
2
+
3
+ Rust port of [devmoji](https://github.com/folke/devmoji) by [@folke](https://github.com/folke). ~10x faster startup.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ cargo install --git https://github.com/loukotal/devmoji-rs
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```sh
14
+ # Add emoji to conventional commits
15
+ echo "feat: add login" | devmoji
16
+ # feat: ✨ add login
17
+
18
+ # As a git hook (prepare-commit-msg)
19
+ devmoji -e
20
+
21
+ # List all available emoji codes
22
+ devmoji --list
23
+
24
+ # Custom config
25
+ echo '{"devmoji": [{"code": "fix", "emoji": "saluting_face"}]}' > devmoji.config.json
26
+ ```
27
+
28
+ ## Credits
29
+
30
+ All credit for the original concept, design, and emoji mappings goes to [devmoji](https://github.com/folke/devmoji) by [Folke Lemaitre](https://github.com/folke).
package/bin/cli.js CHANGED
@@ -55,7 +55,7 @@ try {
55
55
  const binary = getBinaryPath();
56
56
  execFileSync(binary, process.argv.slice(2), { stdio: "inherit" });
57
57
  } catch (err) {
58
- if (err.status !== undefined) {
58
+ if (typeof err.status === "number") {
59
59
  process.exit(err.status);
60
60
  }
61
61
  console.error(err.message);
package/package.json CHANGED
@@ -1,24 +1,25 @@
1
1
  {
2
2
  "name": "@loukotal/devmoji-rs",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "CLI tool to add emoji to conventional commits",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/loukotal/devmoji-rs"
8
+ "url": "git+https://github.com/loukotal/devmoji-rs.git"
9
9
  },
10
10
  "bin": {
11
11
  "devmoji-rs": "bin/cli.js"
12
12
  },
13
13
  "files": [
14
- "bin/"
14
+ "bin/",
15
+ "README.md"
15
16
  ],
16
17
  "optionalDependencies": {
17
- "@loukotal/devmoji-rs-darwin-arm64": "0.1.3",
18
- "@loukotal/devmoji-rs-darwin-x64": "0.1.3",
19
- "@loukotal/devmoji-rs-linux-x64-gnu": "0.1.3",
20
- "@loukotal/devmoji-rs-linux-x64-musl": "0.1.3",
21
- "@loukotal/devmoji-rs-linux-arm64-gnu": "0.1.3",
22
- "@loukotal/devmoji-rs-win32-x64": "0.1.3"
18
+ "@loukotal/devmoji-rs-darwin-arm64": "0.1.5",
19
+ "@loukotal/devmoji-rs-darwin-x64": "0.1.5",
20
+ "@loukotal/devmoji-rs-linux-x64-gnu": "0.1.5",
21
+ "@loukotal/devmoji-rs-linux-x64-musl": "0.1.5",
22
+ "@loukotal/devmoji-rs-linux-arm64-gnu": "0.1.5",
23
+ "@loukotal/devmoji-rs-win32-x64": "0.1.5"
23
24
  }
24
25
  }