0.3.0 • Published 8 years ago

yayaworker.js v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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.