Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narazaka/libsatori.js
Yet Another SATORI on JavaScript
https://github.com/narazaka/libsatori.js
shiori ukagaka
Last synced: about 1 month ago
JSON representation
Yet Another SATORI on JavaScript
- Host: GitHub
- URL: https://github.com/narazaka/libsatori.js
- Owner: Narazaka
- Created: 2014-11-27T17:36:25.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T23:33:36.000Z (over 8 years ago)
- Last Synced: 2024-11-26T13:14:35.759Z (about 1 month ago)
- Topics: shiori, ukagaka
- Language: Makefile
- Size: 3.24 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
libsatori.js
=======================================Yet Another SATORI on JavaScript
Original SHIORI module
---------------------------------------[SATORI](https://github.com/ponapalt/satoriya-shiori) by [The Maintenance Shop](http://ms.shillest.net/)
Installation
---------------------------------------npm install libsatori.js
or
bower install libsatori.js
or download zip archive and get libsatori.js
Usage
---------------------------------------This module has only low level API, that is provided by emscripten.
So use the wrapper module, [nativeshiori](https://github.com/Narazaka/nativeshiori), and do like below.
var dic_test_txt_str = '*OnBoot\r\n:Hello World\r\n';
var dic_test_txt = Encoding.convert(Encoding.stringToCode(dic_test_txt_str), 'SJIS', 'UNICODE');
var storage = {
'dic_test.txt': new Uint8Array(dic_test_txt) // filename: ArrayBufferView
};
// Shiori instance and optional storage (/path/to/ghost/master/*)
var nativeshiori = new NativeShiori(new Satori(), storage);
// write files in storage to FS then load() if storage exists, else load()
var load_code = nativeshiori.load('/path/to/ghost/master');
// request()
var response = nativeshiori.request('GET SHIORI/3.0\r\nCharset: Shift_JIS\r\ID: OnBoot\r\n\r\n');
// unload()
var unload_code = nativeshiori.unload();
LICENSE
--------------------------------(C) 2016 Narazaka : Licensed under [The BSD 3-Clause License](http://narazaka.net/license/BSD3?2016)