yayaworker.js
v0.3.0
Published
WebWorker SHIORI subsystem YAYA
Downloads
9
Readme
YAYAWorker - WebWorker SHIORI subsystem YAYA
Install
npm install yayaworker.js
Usage
node.js
var ShioriLoader = require("shioriloader");
var YAYAWorker = require("yayaworker.js");
browser
<script src="browserfs.js"></script>
<script src="shioriloader.js"></script>
<script src="yayaworker-webworker-all.js"></script>
then
var shiori = new YAYAWorker();
shiori.load(dirpath).then(...);
// or
ShioriLoader.shiori_detectors = [
function(fs, dirpath, shiories) {
return new Promise(function(resolve) { resolve(new shiories.yaya(fs)) });
},
];
ShioriLoader
.detect_shiori(fs, dirpath)
.then((shiori) => shiori.load(dirpath))
.then(...);
License
This is released under MIT License.