Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including pixiv2aozora with all npm packages installed. Try it out:

var pixiv2aozora = require("pixiv2aozora")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pixiv2aozora v0.5.0

Convert pixiv-Novel text into Aozora-style text

pixiv2aozora

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="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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free