Version: 2.0.3
dkutils is now centered on the npm package and interactive CLI, with the website and backend kept as supporting surfaces inside the same monorepo.
The primary distribution is the package in package:
- npm package name:
dkutils-cli - library entry:
package/dist/DKUTILS.js - executable CLI:
package/dist/bin/dkutils.js - expected user flow:
npx dkutils-cli
Running npx dkutils opens an interactive terminal UI. Users can select image, PDF, media, and YouTube operations without needing to remember command syntax.
package: npm packagefrontend: website UI for browser-based usagebackend: supporting API/backend services
Shared dependency versions are managed through the workspace catalog in pnpm-workspace.yaml.
pnpm install
pnpm --filter dkutils-cli build
pnpm --filter dkutils-cli testTo try the packaged CLI locally from this repo:
node package/dist/bin/dkutils.jsTo publish and use it the intended way:
npx dkutils-cliimport { DKUTILS } from "dkutils-cli";
const pages = DKUTILS.pdf.parsePageRanges("1-2,4", 6);- Image: convert, compress, resize, crop, grayscale, flip, remove background, base64, image-to-PDF, PNG-to-JPG
- PDF: merge, split, compress, rotate, delete pages, PDF-to-text, PDF-to-Word, PDF-to-Excel, text-to-PDF
- Media: MOV-to-MP4, media-to-PNG
- YouTube: download
- Package documentation:
package/README.md - Frontend notes:
frontend/README.md - Backend notes:
backend/README.md
pnpm build
pnpm --filter dkutils-cli type-check
pnpm --filter dkutils-cli lint
pnpm --filter dkutils test- The package is the preferred focus for new utility work.
- Some image, PDF, and media features rely on native/runtime packages and external binaries, so those commands require a normal dependency install with build scripts enabled.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please refer to CONTRIBUTING.md for more details.
Distributed under the ISC License. See LICENSE for more information.
Developed with ❤️ by gaureshpai