satoriworker.js

159.3.0 • Public • Published

SatoriWorker - WebWorker SHIORI subsystem Satori

Install

npm install satoriworker.js

Usage

node.js

var ShioriLoader = require("shioriloader");
var SatoriWorker = require("satoriworker.js");

browser

<script src="browserfs.js"></script>
<script src="shioriloader.js"></script>
<script src="satoriworker-webworker-all.js"></script>

then

var shiori = new SatoriWorker();
shiori.load(dirpath).then(...);

// or

ShioriLoader.shiori_detectors = [
  function(fs, dirpath, shiories) {
    return new Promise(function(resolve) { resolve(new shiories.satori(fs)) });
  },
];

ShioriLoader
  .detect_shiori(fs, dirpath)
  .then((shiori) => shiori.load(dirpath))
  .then(...);

License

This is released under MIT License.

Package Sidebar

Install

npm i satoriworker.js

Weekly Downloads

1

Version

159.3.0

License

MIT

Last publish

Collaborators

  • narazaka