Skip to content

ilse-langnar/dom-filesystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

dom-filesystem

Use the Node.js fs API inside Javascript and store the data inside the DOM, good for creating quines.

Installing

npm add dom-filesystem yarn add dom-filesystem

Using

let fs = require("dom-filesystem")(document)

function async main() {
  fs.writeFileSync( "/hello-world.txt", "hello-world")
  let result = fs.readFileSync("/hello-world.txt")
  console.log( result )
}

About

Use the Node.js fs API inside Javascript and store the data inside the DOM, good for creating quines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published