aykutulis / jnotebook

A CLI to launch an interactive development environment for writing and documenting code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JNotebook

This is an interactive coding environment. You can write Javascript, see it executed, and write comprehensive documentation using markdown.

  • Click any text cell to edit it
  • The code in each code editor is all joined together into one file. If you define a variable in cell #1, you can refer to it in any following cell!
  • You can use any library in npm by importing it
  • You can show any React component, string, number, or anything else by calling the show function. This is a function built into this environment. Call show multiple times to show multiple values
  • Re-order or delete cells using the buttons on the top right
  • Add new cells by hovering on the divider between each cell

All of your changes get saved to the file you opened JNotebook with. So if you ran npx jnotebook serve test.js, all of the text and code you write will be saved to the test.js file.

Command Options

-p, --port <number>

npx jnotebook serve jnotebook.js -p 5000
# or
npx jnotebook serve jnotebook.js --port 5000
# or
npx jnotebook serve -p 5000
# or
npx jnotebook serve --port 5000

# Default port = 4005
# Default file name = notebook.js

About

A CLI to launch an interactive development environment for writing and documenting code


Languages

Language:TypeScript 98.1%Language:HTML 1.5%Language:JavaScript 0.4%