Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ottiker/safejs
- Owner: ottiker
- License: mit
- Created: 2017-10-11T10:26:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-26T17:53:24.000Z (about 7 years ago)
- Last Synced: 2024-11-07T10:53:01.229Z (3 months ago)
- Topics: api, dom, maidsafe, safenetwork
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
#### ...