Have ideas to improve npm?Join in the discussion! »

    storyeng

    1.0.4 • Public • Published
    #!/usr/bin/env node
     
    const s = require('storyeng')
    let p
     
    = new s.Part('start')
    p.onenter = `Welcome to my story game.`
    p.oninput = `Name`
     
    = new s.Part('Name')
    p.onenter = `Name's Norman. What's yours?`
    p.oninput = e => {
      e.data.name = e.line
      s.tell('Well, nice to meet you {name}.')
    }
     
    s.start()

    Install

    npm i storyeng

    DownloadsWeekly Downloads

    2

    Version

    1.0.4

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • avatar