p5-livesketch

A command line builder for p5.js sketches, which supports live preview and ES module loading

Usage no npm install needed!

<script type="module">
  import p5Livesketch from 'https://cdn.skypack.dev/p5-livesketch';
</script>

README

p5-livesketch is a simple command line tool for whoever wants to write p5.js sketches efficiently.

The main features:

  • Builds & Runs your sketch in the web browser with a single command
    • Supports ES module loading, which means you can import another files from your sketch
  • Automatically rebuilds your sketch when the source changed
  • Automatically reload the browser when the source changed

Getting Started

Install p5-livesketch via npm ( global-install is recommended ) :

npm i -g p5-livesketch

Once the installation is completed, you can use p5live command.

Let's type:

p5live help

It shows the quick reference for the usage details.

*Upcoming features:

  • Scaffolding a sketch
  • Cleaning old files automatically

© 2020 Satoshi Soma ( https://amekusa.com )