Convert pixiv-Novel text into Aozora-style text
$ npm install pixiv2aozora
var pixiv2aozora = require('pixiv2aozora');
pixiv2aozora('[[rb:青空>あおぞら]]'); // -> "|青空《あおぞら》""
<script src="https://github.com/hakatashi/pixiv2aozora.js/raw/master/dist/pixiv2aozora.min.js"></script>
<script>
pixiv2aozora('[chapter:使徒、[[rb:襲来>しゅうらい]]]');
// -> "[#大見出し]使徒、|襲来《しゅうらい》[#大見出し終わり]"
</script>
$ npm install pixiv2aozora -g
$ pixiv2aozora --help
Usage: cli [options] <file>
Convert pixiv-Novel text into Aozora-style text
Options:
-h, --help output usage information
-V, --version output the version number
-o, --output <file> Write output to <file> instead of stdout
--input-encoding <encoding> Specify encoding to read from input. Defaults to utf8
--output-encoding <encoding> Specify encoding to write to output. Defaults to utf8