NaNoWriMo Promotes Manuscription

    hangman-cli-art

    1.0.1 • Public • Published

    hangman-cli-art

    Hangman art for command line 👍 👎

    hangman

    Install

    npm install --save hangman-cli-art

    API

    var HangmanArt = require('hangman-cli-art')
     
    var art = new HangmanArt({
      marginX: 5,
      marginY: 5
    })
     
     
    art.next() // call next() to render next part

    Refer source for other available options

    Example

    Renders hangman part by part.

    var HangmanArt = require('hangman-cli-art')
     
    var art = new HangmanArt({
      marginX: 5,
      marginY: 5
    })
     
    var chance = 0
    var timer = setInterval(function () {
      if (chance < 10) {
        art.next()
        chance++
      } else {
        clearInterval(timer)
      }
    }, 1000)

    Badges

    Run Status

    JavaScript Style Guide

    Install

    npm i hangman-cli-art

    DownloadsWeekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • scriptnull