npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ebook-rename

v1.0.3

Published

Get the metadata of the e-book and rename it

Downloads

8

Readme

ebook-rename

Github License Github Stars

If you use this project, you can click star to support it.

中文文档

Use ebook-meta to retrieve data from eBooks and rename them

Before using, please ensure that the computer has calibre software installed

Use

$ npm i -g ebook-rename
$ ebook-rename -h
Usage: ebook-rename [options]

Options:
  -d, --directory <path>  The directory where the e-book is located (default: current directory)
  -f, --format <string>   The e-book format to be renamed, supported formats: azw, azw1, azw3, azw4, cbr, cbz, chm, docx, epub, fb2, fbz, html, htmlz, imp, lit, lrf, lrx, mobi, odt, oebzip, opf, pdb, pdf, pml, pmlz, pobi, prc, rar, rb, rtf, snb, tpz, txt, txtz, updb, zip (default: Support all)
  -o, --output <path>     Output directory (default: outputBooks)
  -m, --mode <string>     Output mode, supported mode: cover, jump (default: jump)
  -v, --version           output the version number
  -h, --help              output usage information

If your computer is mac or linux and there are spaces in the directory, then you need to use a backslash in front of the space to convert spaces, as follows:

# mac or linux
$ ebook-rename -d ~/kindle/My\ Kindle\ Content

If your computer is windows and there are spaces in the directory, then you need to enclose the directory with double quotes ". as follows:

# windows
$ ebook-rename -d "c:/kindle/My Kindle Content"

Set up e-book directory

$ ebook-rename -d ~/kindle/My\ Kindle\ Content

If not filled, the default is the current directory.

Set the output directory

$ ebook-rename -o ~/newName

If not filled, the default is the outputBooks folder in the current directory(If not, it is automatically created)

Set output mode

$ ebook-rename -m jump
  • jump: Skip if there is already a file with this name in the output directory

  • cover: If there is already a file with this name in the output directory, then the file is overwritten

Set the file format to be renamed

$ ebook-rename -f mobi,azw3,epub

The default support format is: azw, azw1, azw3, azw4, cbr, cbz, chm, docx, epub, fb2, fbz, html, htmlz, imp, lit, lrf, lrx, mobi, odt, oebzip, opf, pdb, pdf, pml, pmlz, pobi, prc, rar, rb, rtf, snb, tpz, txt, txtz, updb, zip

If you want to specify more than one, you can use a comma to split

Author

Black-Hole

  • Github: https://github.com/BlackHole1
  • Blog: http://bugs.cc
  • WeiBo:http://weibo.com/comelove
  • Twitter:https://twitter.com/Free_BlackHole