worldwideweb 0.0.20 → 0.0.21

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.
@@ -0,0 +1,16 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(tree:*)",
5
+ "Bash(find:*)",
6
+ "WebFetch(domain:linkedobjects.org)",
7
+ "WebFetch(domain:jsonos.com)",
8
+ "Bash(import:*)",
9
+ "Bash(gnome-screenshot:*)",
10
+ "Bash(scrot:*)",
11
+ "Bash(pgrep:*)",
12
+ "Bash(DISPLAY=:0 scrot:*)",
13
+ "Bash(DISPLAY=:0 gnome-screenshot:*)"
14
+ ]
15
+ }
16
+ }
package/README.md CHANGED
@@ -1,5 +1,42 @@
1
- # worldwideweb
1
+ # WorldWideWeb
2
2
 
3
- see : https://www.w3.org/People/Berners-Lee/WorldWideWeb.html
3
+ A WorldWideWeb browser in JavaScript - JSS + mashlib in Electron.
4
4
 
5
- ![Screenshot](https://raw.githubusercontent.com/melvincarvalho/worldwideweb/master/image/screensnap2_24c.gif)
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ npx worldwideweb
9
+ ```
10
+
11
+ ## Install Globally
12
+
13
+ ```bash
14
+ npm install -g worldwideweb
15
+ worldwideweb
16
+ ```
17
+
18
+ ## Development
19
+
20
+ ```bash
21
+ git clone https://github.com/melvincarvalho/worldwideweb.git
22
+ cd worldwideweb
23
+ npm install
24
+ npm start
25
+ ```
26
+
27
+ ## Configure
28
+
29
+ Edit `config.json`:
30
+
31
+ ```json
32
+ {
33
+ "port": 3012,
34
+ "width": 1200,
35
+ "height": 800,
36
+ "root": "./data"
37
+ }
38
+ ```
39
+
40
+ ## License
41
+
42
+ MIT
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'child_process';
3
+ import { dirname, join } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ import { createRequire } from 'module';
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const require = createRequire(import.meta.url);
9
+
10
+ // Get electron path from the electron package
11
+ const electronPath = require('electron');
12
+ const mainPath = join(__dirname, '..', 'main.js');
13
+
14
+ const child = spawn(electronPath, [mainPath, ...process.argv.slice(2)], {
15
+ stdio: 'inherit'
16
+ });
17
+
18
+ child.on('close', (code) => process.exit(code));
package/config.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "port": 3012,
3
+ "width": 1200,
4
+ "height": 800,
5
+ "root": "./data"
6
+ }