Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

editable-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editable-cli

command line notebooks powered by observablehq

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

editable-cli

Command line notebooks powered by observablehq

Local notebooks written in pure javascript, with the same live-relaod functionality as Observable!

Install editable-cli, (npm install -g editable-cli) create new file editable-test.js and run editable-cli ./editable-test.js.

Create few cells using def global function (try saving the file between each edit to see live updates):

  1. def("a", 10) - defines cell a to equal to 10
  2. def("b", 20) - defined cell b to equal to 20
  3. def("sum", (a, b) => a + b) - defines sum to be sum of a and b, changing either of those cells will result in updated sum value

Currently edited file is watched for changes, and frontend automatically refreshes (without full-page reloads) while keeping the cell state intact (unless that cell was changed).

More examples in examples directory.

Named by Peter van Hardenberg.

Why?

I like the idea of notebooks, but I also really like my text editor.

editable-cli allows me to have both.

It was also fun getting to know observable/notebook-runtime.

Installation

npm install -g editable-cli

Running

  1. editable-cli ./file.js
  2. open URL logged to console

FAQs

Package last updated on 19 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc