Public
Edited
Apr 5, 2024
Insert cell
Insert cell
viewof file = html`<input type=file accept="image/*">`
Insert cell
Insert cell
Insert cell
html`<img src="${URL.createObjectURL(file)}">`
Insert cell
Insert cell
viewof source = html`<input type=file accept=".js">`
Insert cell
module = require(URL.createObjectURL(source))
Insert cell
Insert cell
Files
Insert cell
Insert cell
fs
Insert cell
grep
Insert cell
viewof text34 = html`<input type=file >`
//!!!
Insert cell
text34.name
Insert cell
text34.type
Insert cell
text34.webkitRelativePath
Insert cell
viewof text3 = html`<input type=file accept="*">`
Insert cell
viewof text2 = html`<input type=file accept="log/*">`
Insert cell
viewof text = html`<input type=file accept="text/*">`
Insert cell
//Files.text(text34)
Insert cell
text0=Files.text(text34)
Insert cell
Files.text(text)
Insert cell
Insert cell
viewof binary = html`<input type=file>`
Insert cell
Files.buffer(binary)
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