Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including literature-clock with all npm packages installed. Try it out:

var literatureClock = require("literature-clock")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

literature-clock v0.2.0

Returns a random quote containing the passed time.


Returns a random quote containing the passed time.


yarn add literature-clock or npm install literature-clock.


Super simple. This:

const getQuote = require('literature-clock');

const now = new Date();


will result in something like this:

  time: '8.44!',
  book: 'Around the World in Eighty Days',
  author: 'Jules Verne',
  prefix: `The clock's pendulum beat every second with mathematical regularity, and each player could count every sixtieth of a minute as it struck his ear."`,
  suffix: '" said John Sullivan, in a voice that betrayed his emotion.Only one minute more and the wager would be won.'


Inspired by the webapp (which in turn was inspired by the Kindle project).

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free