1.0.4 • Published 3 years ago

@javila-jsnote/local-client v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

In Browser Code Executor

This project was built by following along with a Typescript / React course on Udemy by Stephen Grider.

image

Running the app

The easiest way is to run this application is using npx in your terminal. Your code and markdown will be saved to a file notebook.js by defualt in the directory you run this command from. You may need to update your version of npm.

npx @javila-jsnote/cli serve

CLI Flags

  • Port flag
    • -p <number>
    • Override the default port
  • <filename>.js
    • Override the default name for the ouput file.

Learned

  • Use ESbuild Web Asssembly API to bundle Javascript, JSX, and CSS code in a browser
  • Importing NPM packages in browser by using the Unpkg API
  • Cache NPM packages using IndexDB with localforage
  • Execute code in browser using an iFrame
  • Publish a suite of packages to npm