@stegdoc/web 6.1.0
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/README.md +13 -0
- package/cli.js +26 -0
- package/package.json +34 -0
- package/stegdoc.html +1849 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @stegdoc/web
|
|
2
|
+
|
|
3
|
+
The single-file browser build of [stegdoc](https://github.com/ReemX/stegdoc),
|
|
4
|
+
shipped as one self-contained HTML page. It encodes and decodes XLSX and DOCX
|
|
5
|
+
files entirely in the browser, with no server and no network access.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @stegdoc/web # writes ./stegdoc.html
|
|
9
|
+
npx @stegdoc/web page.html # writes page.html
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Open the file in a browser. It works from `file://`. The page is the same
|
|
13
|
+
artifact the repository builds with `pnpm build:web`.
|
package/cli.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copy the single-file browser build somewhere the caller can open.
|
|
6
|
+
*
|
|
7
|
+
* npx @stegdoc/web # writes ./stegdoc.html
|
|
8
|
+
* npx @stegdoc/web page.html # writes page.html
|
|
9
|
+
* npx @stegdoc/web --print # prints the bundled file's path
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const fs = require('fs');
|
|
13
|
+
const path = require('path');
|
|
14
|
+
|
|
15
|
+
const source = path.join(__dirname, 'stegdoc.html');
|
|
16
|
+
const args = process.argv.slice(2);
|
|
17
|
+
|
|
18
|
+
if (args.includes('--print')) {
|
|
19
|
+
console.log(source);
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const target = path.resolve(args[0] || 'stegdoc.html');
|
|
24
|
+
fs.copyFileSync(source, target);
|
|
25
|
+
console.log(`Wrote ${target}`);
|
|
26
|
+
console.log('Open it in a browser; it runs offline from file://');
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stegdoc/web",
|
|
3
|
+
"version": "6.1.0",
|
|
4
|
+
"description": "Single-file offline browser build of stegdoc: hide a file inside an XLSX or DOCX",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "ReemX",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ReemX/stegdoc.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/ReemX/stegdoc#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ReemX/stegdoc/issues"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18.0.0"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"stegdoc-web": "cli.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"stegdoc.html",
|
|
23
|
+
"cli.js",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"steganography",
|
|
28
|
+
"encryption",
|
|
29
|
+
"xlsx",
|
|
30
|
+
"docx",
|
|
31
|
+
"offline",
|
|
32
|
+
"browser"
|
|
33
|
+
]
|
|
34
|
+
}
|