yayaworker.js

0.3.0 • Public • Published

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.

Package Sidebar

Install

npm i yayaworker.js

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • narazaka