Skip to content
/ poofjs Public

💥 Poof! Tag your JavaScript with markers, see the results inline (e.g. vim or emacs).

Notifications You must be signed in to change notification settings

nybblr/poofjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poof! 💥

Why leave your editor just to log a couple lines? Add a trailing // => comment to any line you want to peak at, then run poofjs and see the results inline.

5 * 7; // =>

Code in => POOF 💥 => Code + results out.

5 * 7; // => 35

Designed for TL;DR: a JavaScript screencast series for working web developers.

Inspired by xmpfilter and RubyTapas.

Examples

let res = 20 + 4; // => 24

let doThing = (val) => {
  return val * 4; // => 8
};

doThing(2);
// => 8

[1,2,3]; // => [ 1, 2, 3 ]

Usage

poofjs takes your code as stdin and spits out the code with results as stdout.

$ echo "5 * 4; // =>" | poofjs

In vim, use the cmd command to feed it the current buffer:

:%! poofjs

Inspiration

  • xmpfilter for Ruby
  • arrow-logger for JavaScript
  • pipe2eval for anything

About

💥 Poof! Tag your JavaScript with markers, see the results inline (e.g. vim or emacs).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published