is-snowball

1.0.1 • Public • Published

is-snowball

Snowball "A poem in which each line is a single word, and each successive word is one letter longer."

INSTALL

npm install is-snowball

USE

var isSnowball = require('is-snowball')
var text = 'wow what magic swords'
if (isSnowball(text)) console.log(text.split(" ").join("\n"))
=>
    wow
    what
    magic
    swords

API

isSnowball(text, reverse=false) => boolean

  • text: a string to test for "snowballness"
  • reverse: if true, check that each successive word is one letter shorter instead.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    7
  • 1.0.0
    0

Package Sidebar

Install

npm i is-snowball

Weekly Downloads

7

Version

1.0.1

License

MIT

Last publish

Collaborators

  • coleww