All Projects → alias-rahil → Handwritten.js

alias-rahil / Handwritten.js

Licence: mit
Convert typed text to realistic handwriting!

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Handwritten.js

py midicsv
A Python port and library-fication of the midicsv tool by John Walker. If you need to convert MIDI files to human-readable text files and back, this is the library for you.
Stars: ✭ 55 (-96.95%)
Mutual labels:  converter, text
Mle
Flexible terminal-based text editor (C)
Stars: ✭ 378 (-79.07%)
Mutual labels:  hacktoberfest, text
FigmaConvertXib
FigmaConvertXib is a tool for exporting design elements from figma.com and generating files to a projects iOS .xib / Android .xml
Stars: ✭ 111 (-93.85%)
Mutual labels:  converter, text
node-poppler
Asynchronous node.js wrapper for the Poppler PDF rendering library
Stars: ✭ 97 (-94.63%)
Mutual labels:  converter, text
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-97.51%)
Mutual labels:  converter, text
Text
📑 Collaborative document editing using Markdown
Stars: ✭ 282 (-84.39%)
Mutual labels:  hacktoberfest, text
Modfy.video
A video transcoder and converter built using Web Assembly and FFMPEG to transcode and convert videos right in your browser while protecting your privacy
Stars: ✭ 283 (-84.33%)
Mutual labels:  hacktoberfest, converter
Kroki
Creates diagrams from textual descriptions!
Stars: ✭ 774 (-57.14%)
Mutual labels:  hacktoberfest, text
Node Html To Text
Advanced html to text converter
Stars: ✭ 872 (-51.72%)
Mutual labels:  converter, text
Seconds
Helpers for converting time to seconds.
Stars: ✭ 20 (-98.89%)
Mutual labels:  hacktoberfest, converter
Orange3 Text
🍊 📄 Text Mining add-on for Orange3
Stars: ✭ 83 (-95.4%)
Mutual labels:  hacktoberfest, text
Youtubeexplode.converter
Muxes and converts videos from YoutubeExplode
Stars: ✭ 68 (-96.23%)
Mutual labels:  hacktoberfest, converter
Evennia
Python MUD/MUX/MUSH/MU* development system
Stars: ✭ 1,309 (-27.52%)
Mutual labels:  hacktoberfest, text
Axel
Axel tries to accelerate the download process by using multiple connections per file, and can also balance the load between different servers.
Stars: ✭ 1,997 (+10.58%)
Mutual labels:  hacktoberfest
Promster
⏰A Prometheus exporter for Hapi, express and Marble.js servers to automatically measure request timings 📊
Stars: ✭ 146 (-91.92%)
Mutual labels:  hacktoberfest
Intelowl
Intel Owl: analyze files, domains, IPs in multiple ways from a single API at scale
Stars: ✭ 2,114 (+17.05%)
Mutual labels:  hacktoberfest
Woodstox
The gold standard Stax XML API implementation. Now at Github.
Stars: ✭ 145 (-91.97%)
Mutual labels:  hacktoberfest
Librobotcontrol
Robotics Focused library for embedded Linux computers.
Stars: ✭ 146 (-91.92%)
Mutual labels:  hacktoberfest
Http
Universal HTTP Module for Nuxt.js
Stars: ✭ 146 (-91.92%)
Mutual labels:  hacktoberfest
Emoji.css
😋 Your website. ⚡️Emojified. 🎉 Like FontAwesome for emojis. 🚀
Stars: ✭ 145 (-91.97%)
Mutual labels:  hacktoberfest

✍️ HANDWRITTEN.js

Convert typed text to realistic handwriting

All Contributors

Version

License: MIT

Demo

🌐 handwritten.js

Installation

For browsers:

<script src="https://raw.githubusercontent.com/alias-rahil/handwritten.js/master/docs/handwritten.js"></script>

This will expose the latest version of handwritten.js as a global variable called handwritten which you can start using right away. Check the contents of docs/ folder for a simple implementation. For other versions, install the required version with npm and use browserify to compile it. Optionally, use babel-minify to compress the bundled javascript file.

For nodejs projects:

npm install handwritten.js

or

yarn add handwritten.js

Install globally:

npm install handwritten.js -g

or

yarn global add handwritten.js

Note: DO NOT use sudo to install global packages! The correct way is to tell npm where to install its global packages: npm config set prefix ~/.local. Make sure ~/.local/bin is added to PATH.

Usage

For nodejs projects:

const handwritten = require('handwritten.js')
const fs = require('fs')
const rawtext = "Hello, world!"
handwritten(rawtext).then((converted) => {
    converted.pipe(fs.createWriteStream('output.pdf'))
})

CLI usage with npx:

npx handwritten.js -f "path/to/inputfile.txt" -o "path/to/outputfile.pdf"

Note: Use this method only if you plan to use handwritten.js for one time, installing handwritten.js globally (see-below) is recommended for multiple time usages.

CLI usage after installing globally:

handwritten.js -f "path/to/inputfile.txt" -o "path/to/outputfile.pdf"

API

Command line

handwritten.js -f path/to/inputfile.txt -o path/to/outputfile.pdf
handwritten.js -f path/to/inputfile.txt -o path/to/outputfile.pdf --ruled
handwritten.js -f path/to/inputfile.txt -o path/to/outputfolder --images png

Check --help or --version option for more details.

In code

handwritten(rawtext)
handwritten(rawtext, { ruled: true })
handwritten(rawtext, { outputType: "jpeg/buf" })
handwritten(rawtext, { ruled: true, outputType: "jpeg/b64" })
handwritten(rawtext, { ruled: true, outputType: "jpeg/b64" , inkColor: COLORS.RED})

Default outputType: "pdf". Supported output types are: pdf, jpeg/buf, jpeg/b64, png/buf and png/b64. If the output type is set to pdf, it returns a promise that will resolve in a pdfkit document instance. Else it will return a promise that will resolve in an array containing the buffer or base64 value of the images according to the output type provided. Default inkColor is black, more ink colors are available through COLORS under handwritten.js/constants

Screenshot

lorem-ipsum.jpeg

Author

👤 Rahil Kabani [email protected]

Show your support

Give a ⭐️ if this project helped you!

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page.

handwritten.js only supports English letters. I am not planning to add support for other languages for now. Please do not any more make issues about this. However, I will merge pull requests if any. See the issue #18 for more details.

Credits

GDGVIT/HandWriter - For the cleaned dataset.

Handwritten.JS

🏠 Homepage

License

MIT

Contributors

Thanks goes to these wonderful people (emoji key):


Rahil Kabani

💻 📖 🚧

Anthony Ng

📖

Ben Junya

💻 📖

Harsh SInghal

💻 🚧

etienne

💻

Ashikka Gupta

🚧 💻

Suyash Sonawane

📖 💻

Vishal Pandey

💻

Anirudh Sharma

💻

Newton Munene

🐛 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].