Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ottiker/safejs

A more abstract SAFE DOM API
https://github.com/ottiker/safejs

api dom maidsafe safenetwork

Last synced: about 1 month ago
JSON representation

A more abstract SAFE DOM API

Awesome Lists containing this project

README

        

# safejs
A more abstract SAFE DOM API

## Methods
#### Factory
Example:
```js
import Safejs = from "./index.js"

Safejs({
id: "my.safe.web.app",
name: "WebApp Test8",
vendor: "vendor inc.",
containers: {
"_documents": ["Read", "Insert", "Update", "Delete"]
},
own_container: true
}).then((appInst) => {

// use app instance..
app.fs.read(address).then(console.log.bind(console));

// use app instance..
app.fs.readUtf8(address).then(console.log.bind(console));
});
```

#### App.fs.read
#### App.fs.readUtf8
#### App.fs.write
#### ...