0.0.24 • Published 4 years ago

jsnotebook2 v0.0.24

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

jsnotebook2

Interactive NodeJS Notebook cli-tool

Rationale

Notes help us think, document, experiment and play with ideas. That's the main reason for creating this project. I'm a big fan of jupyter notebooks, gists, pastebins and cloud documents but I'm still searching for something better to comunicate, express myself and save my JS notes.

Installation

Install the command line cli-tool to have a better experience:

$ npm i -g jsnotebook2
$ jsnotebook2

Otherwise you can try the version online with limited features or view the screencast

Examples

  • Insert math formulas, like the following: \sum i = 1 + 2 + 3 + ... + n
  • Execute javascript code rows by pressing shift+enter during edition, you can repeat this operation multiple times and receive the updatedstdout, stderr
  • To take the most out of the experience you might consider looking into markdown and mathjax language references

Usage

Here's a basic description of the capabilities

  • Select the row type and hit the plus (+) button on the toolbar to create new rows: Markdown, Mathajax, Code
  • You can use the arrow keys (up and down) to move between cells, hit shift+enter for edition and esc to escape edition mode
  • The row selected will be highlighted in blue and the cell under edition in green
  • You can move rows to a different position in the document, using the up and down buttons in the tool bar
  • Also you can perform cut , copy , paste and remove operations on the selected row
  • Notebook can be printed and source code be downloaded as json by clicking the download button
  • All of your changes are automatically persisted to your browser local storage
  • Click the save floppy disk button to restore a previous session or copy source to your clipboard

Dependencies

This package uses

  • vm2 to create a secure sandbox vm to digest nodejs code
  • express to mount a web server via cli and serve static files
  • body-parser to parse incoming request bodies source code
  • opener to open a new tab in your favorite browser

Credits

Developed by Cristian Cortez cortez.cristianatgmail.com

Special thanks to https://www.nodeknockout.com/ that challenges and inspires me to get creative every year

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago