Published
Edited
Apr 21, 2022
5 stars
Insert cell
Insert cell
prettier = require("prettier@2", "prettier@2/parser-babel.js")
Insert cell
Insert cell
prettier.format("2+2", {
parser: "babel",
plugins: [prettier]
})
Insert cell
Insert cell
Insert cell
formatted = prettier.format(code, {
parser: "babel",
plugins: [prettier]
})
Insert cell
Insert cell
Insert cell
format = str => prettier.format(str, {parser: "babel", plugins: [prettier]})
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more