Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

nodejs tools for functionbook

branch: master

fix readme

latest commit 802c873573
Nikolay.Sh authored December 27, 2013
Octocat-spinner-32 lib initial comit January 24, 2012
Octocat-spinner-32 .gitignore initial comit January 24, 2012
Octocat-spinner-32 node-fb2.js initial comit January 24, 2012
Octocat-spinner-32 package.json initial comit January 24, 2012
Octocat-spinner-32 readme.md fix readme December 27, 2013
readme.md

Node FB2

This simple tools for popular ebook format.

Installation

$ npm install node-fb2

How to use

First, require node-fb2:

  var fb2 = require('node-fb2');

Next and finally for now. Load and parse your book.

  fb2.parse('/path/to/file.fb2', function(error, bookMeta) {
    // Do anything
  });

You can define file encoding. By default encoding defined as utf-8. Example,

  fb2.parse('/path/to/file.fb2', 'cp1251', function(error, bookMeta) {
    // Do anything
  });

Todo

* Validate structure.
* Convert fb2 to other formats.

License

(The MIT License)

Copyright (c) 2012 Nikolay Shkuro <nikolas.shkuro@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.