GithubHelp home page GithubHelp logo

lipsumator-next's Introduction

Lipsumator next

In 2015 I made Lipsumator, a customisable placeholder text generator. The project used new (at the time) JavaScript features like generators, so it relies on some tooling that has become pretty out of date.

I still use the lipsumator CLI command occasionally, and I've been intending to modernise the project for a while. Quickly generating placeholder text from your terminal and piping it to the clipboard is really useful.

Deno 1.0 has just been released, and Lipsumator seems like a great way to kick the tires. Deno includes script distribution, bundling, testing, and command line argument parsing tools. Everything I need for the next version of Lipsumator. I want to try it all out and see how it works.

Install

deno install -n lipsumator https://denopkg.com/juice49/[email protected]/cli.ts

Run

Generate three paragraphs

lipsumator --unit paragraphs --length 3

Generate three paragraphs with custom phrases

lipsumator --unit paragraphs --length 3 --phrase 'Maranta Leuconeura' --phrase 'Monstera Deliciosa' --phrase 'Urtica Dioica'

Generate ten sentences

lipsumator --unit sentences --length 10

Generate fifty words

lipsumator --unit words --length 50

Command line arguments

Argument Alias Default Description
unit u paragraphs Units of text to generate (words, sentences, or paragraphs).
length l 1 Quantity of text units to generate (Infinity for fun).
phrase p Append a phrase to the phrase list.
unformatted false Emit each unit of text without formatting or punctuation.

Future

Lipsumator itself can probably be an independent library that can run in any JS environment (like the browser and serverless functions). For now, I am combining the Deno CLI and the Lipsumator library. Let's split those apart in the future.

Todo

lipsumator-next's People

Contributors

juice49 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.