lesson-launcher

launches an interactive terminal for JavaScript lessons/examples

Showing:

Popularity

Downloads/wk

5

GitHub Stars

1

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

11

Size (min+gzip)

68.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

lesson-launcher

experimental

screen

An interactive terminal to browse and launch JavaScript files in a particular environment. By default, uses node for all scripts, but this can be overridden to run es6 files or launch a browser for DOM/WebGL examples.

Currently only works with a single depth in folder structure, which typically looks like this:

lessons
    streams
        01.js
        02.js
        README.md
    foobar
        01.js
        foo.js
        README.md
    dom
        01.js
        README.md

See test.js for example. Note that this module is highly experimental and subject to change.

The basic setup looks like this:

var run = require('lesson-launcher')

run('lessons', {
    //to filter filenames that are shown
    accept: function(file) {
        return /^[0-9]+/.test(f)
    }
})

License

MIT, see LICENSE.md for details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100