npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

handwriting-io-cli

v1.0.0

Published

This utility allows to you generate handwriting images from handwriting.io within via a CLI. You can also drive handwriting production with a spreadsheet.

Downloads

3

Readme

handwriting.io-generator

This utility allows to you generate handwriting images from handwriting.io within via a CLI. You can also drive handwriting production with a spreadsheet.

Todo

  • Make npm package
  • Setup CLI alias

Installation

  • clone the repo
  • npm install

Get a handwriting

Returns specific handwriting style details in a cli-table.

dominick:$ node src/js/interface.js --api_key=YOUR_API_KEY --api_secret=YOUR_API_SECRET --action=get-handwriting --handwriting_id=HANDWRITING_ID

┌────────────────────────┬─────────────────────────────┐
│ id                     │ 7EQMJPSG00H9                │
├────────────────────────┼─────────────────────────────┤
│ title                  │ Beekman                     │
├────────────────────────┼─────────────────────────────┤
│ date_created           │ 2016-01-06T20:49:46.337723Z │
├────────────────────────┼─────────────────────────────┤
│ date_modified          │ 2016-01-06T20:49:46.337723Z │
├────────────────────────┼─────────────────────────────┤
│ rating_neatness        │ 1400                        │
├────────────────────────┼─────────────────────────────┤
│ rating_cursivity       │ 1400                        │
├────────────────────────┼─────────────────────────────┤
│ rating_embellishment   │ 1400                        │
├────────────────────────┼─────────────────────────────┤
│ rating_character_width │ 1400                        │
└────────────────────────┴─────────────────────────────┘

Get all handwritings

Lists all handwritings and style details in a cli-table.

dominick:$ node src/js/interface.js --api_key=YOUR_API_KEY --api_secret=YOUR_API_SECRET --action=get-handwritings

┌──────────────┬────────────────┬─────────────────────────────┬─────────────────────────────┬─────────────────┬──────────────────┬──────────────────────┬────────────────────────┐
│ id           │ title          │ date_created                │ date_modified               │ rating_neatness │ rating_cursivity │ rating_embellishment │ rating_character_width │
├──────────────┼────────────────┼─────────────────────────────┼─────────────────────────────┼─────────────────┼──────────────────┼──────────────────────┼────────────────────────┤
│ 2D5QW0F80001 │ Molly          │ 2015-04-30T21:27:45.979398Z │ 2016-01-06T20:28:09.55861Z  │ 1459            │ 1286             │ 1367                 │ 1339                   │
├──────────────┼────────────────┼─────────────────────────────┼─────────────────────────────┼─────────────────┼──────────────────┼──────────────────────┼────────────────────────┤
│ 2D5S18M00002 │ Winters        │ 2015-04-30T21:30:18.575741Z │ 2015-12-16T15:18:27.777815Z │ 1425            │ 1319             │ 1373                 │ 1236                   │
├──────────────┼────────────────┼─────────────────────────────┼─────────────────────────────┼─────────────────┼──────────────────┼──────────────────────┼────────────────────────┤
│ 2D5S46A80003 │ Perry          │ 2015-04-30T21:30:30.568965Z │ 2015-12-16T15:19:17.924603Z │ 1334            │ 1341             │ 1400                 │ 1489                   │
├──────────────┼────────────────┼─────────────────────────────┼─────────────────────────────┼─────────────────┼──────────────────┼──────────────────────┼────────────────────────┤
...

You can also grep a handwriting name you know.

node src/js/interface.js --api_key=YOUR_API_KEY --api_secret=YOUR_API_SECRET--action=get-handwritings | grep Bailey
│ 5WGWVX5G00WA │ Bailey         │ 2015-10-20T20:50:26.070586Z │ 2016-04-25T15:34:47.848553Z │ 1394            │ 1499             │ 1392                 │ 1534                   │

Generate single

Make a single handwriting image with text specified in the command line.

dominick:$ node src/js/interface.js --api_key=YOUR_API_KEY --api_secret=YOUR_API_SECRET --action=generate-single  --handwriting_id=7EQMJPSG00H9 --type=png --text="Hello world" --output_path="output/example.pdf"

output/example.pdf saved.

Options

--size

Handwriting size in points or pixels, eg: "20pt". You should use points for PDF and pixels for PNG.

--line_spacing

Specify a line spacing. Amount of vertical space for each line, provided as a multiplier of handwriting size.

--color

CMYK color values as decimal values in the following format: "(C,M,Y,K)". For example: "(0,0,0,1)" is black.

--width and --height

Width and height of the output image in pixels or inches. You should use inches for PDF and pixels for PNG. For example: "4 in" would give you 4 inches. Limiting the width of the image will cause long text to wrap on to another line.

Generate list

Generate many handwriting images with the use of a spreadsheet. Your spreadsheet may only have one sheet and will throw an error if a workbook with multiple tabs is input. You also have to enter the name of the column which will be used for the text. Lastly, you have to select the column that will be the name of the output file (without the file extension).

dominick:$ node src/js/interface.js --api_key=YOUR_API_KEY --api_secret=YOUR_API_SECRET --action=generate-list  --handwriting_id=7EQMJPSG00H9 --sheet="/var/Samples/handwriting_sample.csv" --text_column=Text  --output_dir="output/" --output_column=Filename --type=pdf

output/1GabrielPeluso.pdf saved.
output/2SamMunroe.pdf saved.
output/3JohnDoe.pdf saved.
...
All files have been processed successfully