@fouaden/snipit 1.1.0 → 1.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 (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +15 -6
package/README.md CHANGED
@@ -6,11 +6,13 @@
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <a href="https://www.npmjs.com/package/@fouaden/snipit"><img src="https://img.shields.io/npm/v/snipit.svg" alt="npm version"></a>
10
9
  <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-18%2B-339933?logo=node.js" alt="Node.js 18+"></a>
11
10
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green" alt="License"></a>
12
11
  </p>
13
12
 
13
+
14
+
15
+
14
16
  <p align="center">
15
17
  <a href="#install">Install</a> •
16
18
  <a href="#quick-start">Quick Start</a> •
@@ -31,13 +33,20 @@ snipit stores them locally, tagged and searchable, ready to copy to your clipboa
31
33
  ## Install
32
34
 
33
35
  ```bash
34
- npm install -g snipit
36
+ npm i -g @fouaden/snipit
35
37
  ```
36
38
 
39
+
37
40
  **Requirements**: Node.js 18+
38
41
 
39
42
  ---
40
43
 
44
+ ## Note!
45
+ macOS/Linux: If you get an EACCES permission error, run
46
+ ``` bash
47
+ sudo npm install -g @fouaden/snipit # This happens when npm's global folder is owned by root.
48
+ ```
49
+
41
50
  ## Quick Start
42
51
 
43
52
  ```bash
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@fouaden/snipit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A lightweight CLI tool to save, search and tag code snippets locally. Stop re-typing; start snipping.",
5
5
  "main": "bin/snipit.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "module",
8
+ "bin": {
9
+ "snipit": "./bin/snipit.js"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/fouadbuilds/snipit.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/fouadbuilds/snipit/issues"
17
+ },
18
+ "homepage": "https://github.com/fouadbuilds/snipit#readme",
6
19
  "scripts": {
7
20
  "dev": "tsx bin/snipit.js",
8
21
  "build": "tsc",
@@ -11,9 +24,6 @@
11
24
  "test:run": "vitest run",
12
25
  "test:ui": "vitest --ui"
13
26
  },
14
- "bin": {
15
- "snipit": "./bin/snipit.js"
16
- },
17
27
  "files": [
18
28
  "dist/",
19
29
  "bin/"
@@ -32,7 +42,6 @@
32
42
  ],
33
43
  "author": "fouadbuilds",
34
44
  "license": "MIT",
35
- "type": "module",
36
45
  "devDependencies": {
37
46
  "@types/node": "^25.3.0",
38
47
  "ts-node": "^10.9.2",
@@ -46,4 +55,4 @@
46
55
  "commander": "^14.0.3",
47
56
  "picocolors": "^1.1.1"
48
57
  }
49
- }
58
+ }