@leftium/gg 0.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 John-Kim Murphy
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,45 @@
1
+ # gg: never use console.log() to debug again!
2
+
3
+ `gg()` is a lo**gg**er/debu**gg**er with several advantages:
4
+
5
+ - Annotated with automatic _namespace_ based on source file and calling function.
6
+ - Each namespace gets a unique color for easier visual parsing.
7
+ - Simple syntax with wildcards to filter/hide debug output at runtime.
8
+ - Millisecond diff (timestamps) for each namespace.
9
+ - Can be inserted into the middle of expressions (returns the value of the first argument).
10
+ - Can output a link that opens the source file in your editor (like VS Code).
11
+ - Simple to disable (turn all loggs into NOP's for production).
12
+ - Faster to type.
13
+
14
+ ## Installation
15
+
16
+ ```
17
+ npm add @leftium/gg
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ _Coming soon..._
23
+
24
+ ## Inspirations
25
+
26
+ ### debug
27
+
28
+ > A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers.
29
+
30
+ - https://www.npmjs.com/package/debug
31
+
32
+ ### q (python)
33
+
34
+ > Quick and dirty debugging output for tired programmers.
35
+
36
+ - https://github.com/zestyping/q
37
+ - [Hacker News discussion](https://hw.leftium.com/#/item/9981430)
38
+ - [PyCon lightning talk](https://www.youtube.com/watch?v=OL3De8BAhME#t=25m15s)
39
+
40
+ ### IceCream (python)
41
+
42
+ > Never use print() to debug again
43
+
44
+ - https://github.com/gruns/icecream
45
+ - [Hacker News discussion](https://hw.leftium.com/#/item/26631467)
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ // Reexport your entry components here
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@leftium/gg",
3
+ "version": "0.0.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/Leftium/gg.git"
7
+ },
8
+ "license": "MIT",
9
+ "scripts": {
10
+ "dev": "vite dev",
11
+ "build": "vite build && npm run prepack",
12
+ "preview": "vite preview",
13
+ "prepare": "svelte-kit sync || echo ''",
14
+ "prepack": "svelte-kit sync && svelte-package && publint",
15
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
16
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
17
+ "format": "prettier --write .",
18
+ "lint": "prettier --check . && eslint ."
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "!dist/**/*.test.*",
23
+ "!dist/**/*.spec.*"
24
+ ],
25
+ "sideEffects": [
26
+ "**/*.css"
27
+ ],
28
+ "types": "./dist/index.d.ts",
29
+ "type": "module",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ }
35
+ },
36
+ "peerDependencies": {
37
+ "svelte": "^5.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "@eslint/compat": "^1.2.5",
41
+ "@eslint/js": "^9.18.0",
42
+ "@sveltejs/adapter-vercel": "^5.5.2",
43
+ "@sveltejs/kit": "^2.16.0",
44
+ "@sveltejs/package": "^2.0.0",
45
+ "@sveltejs/vite-plugin-svelte": "^5.0.0",
46
+ "eslint": "^9.18.0",
47
+ "eslint-config-prettier": "^10.0.1",
48
+ "eslint-plugin-svelte": "^3.0.0",
49
+ "globals": "^16.0.0",
50
+ "prettier": "^3.4.2",
51
+ "prettier-plugin-svelte": "^3.3.3",
52
+ "publint": "^0.3.2",
53
+ "svelte": "^5.0.0",
54
+ "svelte-check": "^4.0.0",
55
+ "typescript": "^5.0.0",
56
+ "typescript-eslint": "^8.20.0",
57
+ "vite": "^6.0.0"
58
+ },
59
+ "keywords": [
60
+ "svelte"
61
+ ],
62
+ "pnpm": {
63
+ "onlyBuiltDependencies": [
64
+ "esbuild"
65
+ ]
66
+ }
67
+ }