Sign inSign up

celfring/reading-time

By celfring

Updated almost 6 years ago

Image
0

205

celfring/reading-time repository overview

Reading-time CLI

Docker Pulls Docker Image Size (tag)

CLI tool for "Medium-like reading time estimation" using https://github.com/ngryman/reading-time reading time library.

You can run this using either Docker or Node.js.

Docker

# Run from file with stdin
cat file.txt | docker run --rm -i celfring/reading-time --

# Run from file
docker run --rm -i -v $(pwd)/file.txt:/file.txt celfring/reading-time /file.txt

# Run from clipboard
pbpaste | docker run --rm -i celfring/reading-time --

Node

(This assumes you are using a supported node version)

# Install node modules
npm install

# Run from file with stdin
cat file.txt | node reading-time.js --

# Run from file
node reading-time.js file.txt

# Run from clipboard
pbpaste | node reading-time.js --

Tag summary

Content type

Image

Digest

Size

39.1 MB

Last updated

almost 6 years ago

docker pull celfring/reading-time