Go to file
2016-08-24 14:47:48 +02:00
assets web store info 2016-06-21 16:36:53 +02:00
bin refactoring, more options, various fixes 2016-08-24 14:47:48 +02:00
extension refactoring, more options, various fixes 2016-08-24 14:47:48 +02:00
src refactoring, more options, various fixes 2016-08-24 14:47:48 +02:00
.babelrc removed continued 2016-06-23 08:51:26 +02:00
.gitignore proper module 2016-08-15 11:11:20 +02:00
gulpfile.babel.js Add Fimfiction category/subject. Add version number to EPUB metadata. 2016-08-19 11:24:20 +02:00
package.json fix textarea 2016-08-24 09:09:43 +02:00
packchrome.sh pack zip 2016-06-23 16:25:18 +02:00
README.md add nodeico 2016-08-19 11:38:07 +02:00
webpack.config.babel.js almost ready... 2016-08-23 16:32:55 +02:00

NPM

fimfic2epub

This is a tool to generate better EPUB ebooks from fimfiction stories. It's also a Chrome/Firefox extension, replacing the default EPUB download option with this tool.

Demo

You can have a look at what a generated EPUB looks like here. It was generated from the story Summer Island.

Usage (browser extension)

You can download the Chome extension from Chrome Web Store.

Right now the addon is not available in Add-ons for Firefox, but it's fully compatible.

Installation & usage (command line)

You can install the tool by running npm install -g fimfic2epub. You can then run it like this:

$ fimfic2epub <story id/url> [<optional filename>]

By default the EPUB will be saved in the current working directory with the filename Title by Author.epub. You can set filename to - and the epub will be emitted to stdout instead.

Examples

Download with automatic filename:
$ fimfic2epub 180690
$ fimfic2epub https://www.fimfiction.net/story/180690/tag-test

Download and save to a specified filename:
$ fimfic2epub 180690 path/to/file.epub
$ fimfic2epub 180690 - > path/to/file.epub

Building

Make sure Node.js is installed. After you've cloned this repository, run npm install and npm run build to build it. This project uses gulp.

Development

Make sure gulp is installed.

When working on the code and testing it in a web browser as an extension, you can run gulp in watch mode: gulp watch. This will lint code and build it when you save. To build, just run gulp or npm run build. To lint, run gulp lint and to clean, run gulp clean.