Newly Purchased Memories
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

pixiv2aozora

0.5.0 • Public • Published

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

install

npm i pixiv2aozora

Downloadsweekly downloads

1

version

0.5.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar