noupload 1.0.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/.github/workflows/release.yml +73 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/biome.json +34 -0
- package/bunfig.toml +7 -0
- package/dist/index.js +192 -0
- package/install.sh +68 -0
- package/package.json +47 -0
- package/scripts/inspect-help.ts +15 -0
- package/site/index.html +112 -0
- package/src/cli.ts +24 -0
- package/src/commands/audio/convert.ts +107 -0
- package/src/commands/audio/extract.ts +84 -0
- package/src/commands/audio/fade.ts +128 -0
- package/src/commands/audio/index.ts +35 -0
- package/src/commands/audio/merge.ts +109 -0
- package/src/commands/audio/normalize.ts +110 -0
- package/src/commands/audio/reverse.ts +64 -0
- package/src/commands/audio/speed.ts +101 -0
- package/src/commands/audio/trim.ts +98 -0
- package/src/commands/audio/volume.ts +91 -0
- package/src/commands/audio/waveform.ts +117 -0
- package/src/commands/doctor.ts +125 -0
- package/src/commands/image/adjust.ts +129 -0
- package/src/commands/image/border.ts +94 -0
- package/src/commands/image/bulk-compress.ts +111 -0
- package/src/commands/image/bulk-convert.ts +114 -0
- package/src/commands/image/bulk-resize.ts +112 -0
- package/src/commands/image/compress.ts +95 -0
- package/src/commands/image/convert.ts +116 -0
- package/src/commands/image/crop.ts +96 -0
- package/src/commands/image/favicon.ts +89 -0
- package/src/commands/image/filters.ts +108 -0
- package/src/commands/image/index.ts +49 -0
- package/src/commands/image/resize.ts +110 -0
- package/src/commands/image/rotate.ts +90 -0
- package/src/commands/image/strip-metadata.ts +60 -0
- package/src/commands/image/to-base64.ts +72 -0
- package/src/commands/image/watermark.ts +141 -0
- package/src/commands/pdf/compress.ts +157 -0
- package/src/commands/pdf/decrypt.ts +102 -0
- package/src/commands/pdf/delete-pages.ts +112 -0
- package/src/commands/pdf/duplicate.ts +119 -0
- package/src/commands/pdf/encrypt.ts +161 -0
- package/src/commands/pdf/from-images.ts +104 -0
- package/src/commands/pdf/index.ts +55 -0
- package/src/commands/pdf/merge.ts +84 -0
- package/src/commands/pdf/ocr.ts +270 -0
- package/src/commands/pdf/organize.ts +88 -0
- package/src/commands/pdf/page-numbers.ts +152 -0
- package/src/commands/pdf/reverse.ts +71 -0
- package/src/commands/pdf/rotate.ts +116 -0
- package/src/commands/pdf/sanitize.ts +77 -0
- package/src/commands/pdf/sign.ts +156 -0
- package/src/commands/pdf/split.ts +148 -0
- package/src/commands/pdf/to-images.ts +84 -0
- package/src/commands/pdf/to-text.ts +51 -0
- package/src/commands/pdf/watermark.ts +179 -0
- package/src/commands/qr/bulk-generate.ts +136 -0
- package/src/commands/qr/generate.ts +128 -0
- package/src/commands/qr/index.ts +16 -0
- package/src/commands/qr/scan.ts +114 -0
- package/src/commands/setup.ts +156 -0
- package/src/index.ts +42 -0
- package/src/lib/audio/ffmpeg.ts +93 -0
- package/src/utils/colors.ts +41 -0
- package/src/utils/detect.ts +222 -0
- package/src/utils/errors.ts +89 -0
- package/src/utils/files.ts +148 -0
- package/src/utils/logger.ts +90 -0
- package/src/utils/pdf-tools.ts +220 -0
- package/src/utils/progress.ts +142 -0
- package/src/utils/style.ts +38 -0
- package/tsconfig.json +27 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Build and Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build ${{ matrix.target }}
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
include:
|
|
18
|
+
- os: ubuntu-latest
|
|
19
|
+
target: linux-x64
|
|
20
|
+
args: --target bun-linux-x64
|
|
21
|
+
- os: ubuntu-latest
|
|
22
|
+
target: linux-arm64
|
|
23
|
+
args: --target bun-linux-arm64
|
|
24
|
+
- os: macos-latest
|
|
25
|
+
target: darwin-x64
|
|
26
|
+
args: --target bun-darwin-x64
|
|
27
|
+
- os: macos-latest
|
|
28
|
+
target: darwin-arm64
|
|
29
|
+
args: --target bun-darwin-arm64
|
|
30
|
+
- os: windows-latest
|
|
31
|
+
target: windows-x64
|
|
32
|
+
args: --target bun-windows-x64
|
|
33
|
+
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
|
|
37
|
+
- name: Setup Bun
|
|
38
|
+
uses: oven-sh/setup-bun@v1
|
|
39
|
+
with:
|
|
40
|
+
bun-version: latest
|
|
41
|
+
|
|
42
|
+
- name: Install Dependencies
|
|
43
|
+
run: bun install
|
|
44
|
+
|
|
45
|
+
- name: Build Binary
|
|
46
|
+
run: bun build src/index.ts --compile --minify --outfile noupload-${{ matrix.target }} ${{ matrix.args }}
|
|
47
|
+
|
|
48
|
+
- name: Upload Artifact
|
|
49
|
+
uses: actions/upload-artifact@v4
|
|
50
|
+
with:
|
|
51
|
+
name: noupload-${{ matrix.target }}
|
|
52
|
+
path: noupload-${{ matrix.target }}*
|
|
53
|
+
|
|
54
|
+
release:
|
|
55
|
+
needs: build
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v4
|
|
59
|
+
|
|
60
|
+
- name: Download Artifacts
|
|
61
|
+
uses: actions/download-artifact@v4
|
|
62
|
+
|
|
63
|
+
- name: Create Release
|
|
64
|
+
uses: softprops/action-gh-release@v1
|
|
65
|
+
with:
|
|
66
|
+
files: |
|
|
67
|
+
noupload-linux-x64/noupload-linux-x64
|
|
68
|
+
noupload-linux-arm64/noupload-linux-arm64
|
|
69
|
+
noupload-darwin-x64/noupload-darwin-x64
|
|
70
|
+
noupload-darwin-arm64/noupload-darwin-arm64
|
|
71
|
+
noupload-windows-x64/noupload-windows-x64.exe
|
|
72
|
+
draft: false
|
|
73
|
+
prerelease: false
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rohit Mishra
|
|
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,118 @@
|
|
|
1
|
+
# NoUpload CLI
|
|
2
|
+
|
|
3
|
+
**Privacy-first CLI for PDF, Image, Audio, and QR operations.**
|
|
4
|
+
All processing happens locally on your machine. No uploads. No cloud. No data leaks.
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/noupload)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **PDF Tools**: Merge, Split, Compress, Encrypt, Watermark, OCR, Sign, and more.
|
|
12
|
+
- **Image Tools**: Resize, Convert (WebP/AVIF), Compress, Crop, Remove Metadata.
|
|
13
|
+
- **Audio Tools**: Trim, Convert, Speed, Volume, Waveform Visualization.
|
|
14
|
+
- **QR Code**: Generate, Scan, Bulk Create.
|
|
15
|
+
- **Offline First**: Zero data leaves your computer.
|
|
16
|
+
- **AI Agent Friendly**: Non-interactive mode support.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
### Quick Install (Recommended)
|
|
21
|
+
Install the standalone binary (no Node.js required):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
curl -fsSL noupload.xyz/install.sh | bash
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Node/Bun Install
|
|
28
|
+
```bash
|
|
29
|
+
# Install globally via npm
|
|
30
|
+
npm install -g noupload
|
|
31
|
+
|
|
32
|
+
# Or use via Bun
|
|
33
|
+
bun install -g noupload
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### First Run Setup
|
|
37
|
+
NoUpload relies on industry-standard tools (FFmpeg, Ghostscript) for heavy lifting.
|
|
38
|
+
Run the setup command to automatically detect and install missing dependencies for your OS.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
noupload setup
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
*Supports macOS (brew), Windows (winget), and Linux (apt, dnf, pacman, apk).*
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
### PDF Operations
|
|
49
|
+
```bash
|
|
50
|
+
# Merge multiple files
|
|
51
|
+
noupload pdf merge file1.pdf file2.pdf -o merged.pdf
|
|
52
|
+
|
|
53
|
+
# Compress PDF (High Quality using Ghostscript)
|
|
54
|
+
noupload pdf compress input.pdf -o small.pdf
|
|
55
|
+
|
|
56
|
+
# Page Numbers
|
|
57
|
+
noupload pdf page-numbers input.pdf
|
|
58
|
+
noupload pdf page-numbers input.pdf --format "Page {n}" --x 300 --y 20
|
|
59
|
+
|
|
60
|
+
# Watermark (Preset or Custom Position)
|
|
61
|
+
noupload pdf watermark input.pdf --text "CONFIDENTIAL" --position top-right
|
|
62
|
+
noupload pdf watermark input.pdf --text "LOGO" --x 100 --y 500
|
|
63
|
+
|
|
64
|
+
# Encrypt (AES-256)
|
|
65
|
+
noupload pdf encrypt input.pdf -p "mypassword"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Image Operations
|
|
69
|
+
```bash
|
|
70
|
+
# Resize image
|
|
71
|
+
noupload image resize input.png --width 800
|
|
72
|
+
|
|
73
|
+
# Convert format
|
|
74
|
+
noupload image convert photo.jpg --format webp
|
|
75
|
+
|
|
76
|
+
# Bulk Compress Directory
|
|
77
|
+
noupload image bulk-compress ./photos -o ./compressed
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Audio Operations
|
|
81
|
+
```bash
|
|
82
|
+
# Trim audio
|
|
83
|
+
noupload audio trim song.mp3 --start 00:30 --end 01:00
|
|
84
|
+
|
|
85
|
+
# Change Speed
|
|
86
|
+
noupload audio speed lecture.wav --factor 1.5
|
|
87
|
+
|
|
88
|
+
# Generate Waveform Image
|
|
89
|
+
noupload audio waveform podcast.mp3 -o wave.png
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### QR Code
|
|
93
|
+
```bash
|
|
94
|
+
# Generate
|
|
95
|
+
noupload qr generate "https://example.com" -o qr.png
|
|
96
|
+
|
|
97
|
+
# Scan from Image
|
|
98
|
+
noupload qr scan screenshot.png
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## AI Agents & CI/CD
|
|
102
|
+
|
|
103
|
+
NoUpload is designed to be used by AI Agents (like Claude Code, OpenCode) and CI pipelines.
|
|
104
|
+
|
|
105
|
+
- **Non-Interactive Setup**: Run `noupload setup --yes` to auto-install dependencies without prompts.
|
|
106
|
+
- **Clean Logs**: The CLI automatically detects non-TTY environments and disables spinners/animations for clean log parsing.
|
|
107
|
+
|
|
108
|
+
## Doctor
|
|
109
|
+
|
|
110
|
+
If something isn't working, run the doctor to diagnose your environment:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
noupload doctor
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
MIT
|
package/biome.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
3
|
+
"organizeImports": {
|
|
4
|
+
"enabled": true
|
|
5
|
+
},
|
|
6
|
+
"linter": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"rules": {
|
|
9
|
+
"recommended": true,
|
|
10
|
+
"complexity": {
|
|
11
|
+
"noForEach": "off"
|
|
12
|
+
},
|
|
13
|
+
"suspicious": {
|
|
14
|
+
"noExplicitAny": "warn"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"formatter": {
|
|
19
|
+
"enabled": true,
|
|
20
|
+
"indentStyle": "space",
|
|
21
|
+
"indentWidth": 2,
|
|
22
|
+
"lineWidth": 100
|
|
23
|
+
},
|
|
24
|
+
"javascript": {
|
|
25
|
+
"formatter": {
|
|
26
|
+
"quoteStyle": "single",
|
|
27
|
+
"semicolons": "always",
|
|
28
|
+
"trailingCommas": "es5"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": {
|
|
32
|
+
"ignore": ["node_modules", "dist", "*.json"]
|
|
33
|
+
}
|
|
34
|
+
}
|