@dprint/jupyter
v0.2.3
Published
Wasm module for dprint-plugin-jupyter.
Downloads
52
Maintainers
Readme
@dprint/jupyter
npm distribution of dprint-plugin-jupyter.
Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-jupyter Wasm file.
Example
import { createFromBuffer } from "@dprint/formatter";
import { getPath } from "@dprint/jupyter";
import * as fs from "fs";
const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);
console.log(formatter.formatText("notebook.ipynb", "{}"));