hakatashi / pixiv2aozora.js

Convert pixiv-Novel text into Aozora-style text
0 stars 0 forks source link

pixiv2aozora

Greenkeeper badge

Build Status Bower npm

Convert pixiv-Novel text into Aozora-style text

No time to learn, Just use!

node.js

$ npm install pixiv2aozora
var pixiv2aozora = require('pixiv2aozora');
pixiv2aozora('[[rb:青空>あおぞら]]'); // -> "|青空《あおぞら》""

Browser

<script src="https://github.com/hakatashi/pixiv2aozora.js/raw/master/dist/pixiv2aozora.min.js"></script>
<script>
    pixiv2aozora('[chapter:使徒、[[rb:襲来>しゅうらい]]]');
        // -> "[#大見出し]使徒、|襲来《しゅうらい》[#大見出し終わり]"
</script>

Command

$ 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