@hapticjs/cli 0.1.0 → 0.1.1

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/LICENSE +21 -0
  2. package/README.md +41 -0
  3. package/package.json +6 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Thirumalesh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @hapticjs/cli
2
+
3
+ CLI tools for previewing and validating haptic patterns.
4
+
5
+ ```bash
6
+ npm install -g @hapticjs/cli
7
+ ```
8
+
9
+ ## Commands
10
+
11
+ ### Preview
12
+
13
+ Visualize a haptic pattern as an ASCII timeline:
14
+
15
+ ```bash
16
+ hapticjs preview "~~..##..@@"
17
+ # ▃▃░░▅▅░░████
18
+ ```
19
+
20
+ ### Validate
21
+
22
+ Check if a pattern is valid:
23
+
24
+ ```bash
25
+ hapticjs validate "[~.]x3"
26
+ # Valid pattern — 6 steps, 300ms total
27
+ ```
28
+
29
+ ### List
30
+
31
+ List all built-in presets:
32
+
33
+ ```bash
34
+ hapticjs list
35
+ hapticjs list gaming
36
+ hapticjs list notifications
37
+ ```
38
+
39
+ ## License
40
+
41
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapticjs/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Developer CLI for Feelback haptic engine — preview, test, and validate patterns",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@hapticjs/core": "0.1.0"
15
+ "@hapticjs/core": "0.2.0"
16
16
  },
17
17
  "keywords": [
18
18
  "haptics",
@@ -20,6 +20,10 @@
20
20
  "developer-tools",
21
21
  "vibration"
22
22
  ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/thirumaleshp/Feelback.git"
26
+ },
23
27
  "license": "MIT",
24
28
  "devDependencies": {
25
29
  "@types/node": "^25.5.0"