img2b64
v1.0.4
Published
A simple CLI tool to convert image files to Base64 and save the result in `output.txt`.
Maintainers
Readme
📦 img2b64
A simple CLI tool to convert image files to Base64 and save the result in output.txt.
🛠 Installation
Global Install
npm install -g img2b64OR Use without installing (via npx)
npx img2b64 <path-to-image>🚀 Usage
Command:
img2b64 <path-to-image>Example:
img2b64 ./cat.jpgThis will create a file called output.txt in the current directory containing the Base64 encoded string of the image.
📂 Output
output.txt— Contains the base64 string of your image.
🧪 Example Use Case
Convert an image and store its base64 string for embedding into HTML/CSS or APIs.
❓ Why img2b64?
- Lightweight and fast
- No extra dependencies
- Easy to use via terminal or scripts
👤 Author
Sujal Kumar Soni 📍 Delhi, India 📧 [email protected] 🔗 LinkedIn Profile
📄 License
Licensed under the MIT License — free to use and modify.
