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

isbn-info

v2.2.4

Published

Console tools to identify books by their ISBN and output formatted metadata.

Downloads

81

Readme

isbn-info

npm version GitHub Build Status

Console tools to identify books by their ISBN and output formatted metadata.

npm i -g isbn-info
isbn-format 0735619670
// => Steve McConnell - Code Complete (2004) 0735619670

Usage

isbn-format

  Identify a book by its ISBN and output formatted metadata.

  Usage: isbn-format <isbn>

  Options:
    -f, --format=FORMAT       output format for book information
                                %I0 for ISBN-10
                                %I3 for ISBN-13
                                %IS for ISSN
                                %I for ISBN-13 or ISBN-10, whichever comes first
                                %T for title + subtitle
                                %Y for publication date
                                %A for author(s)
                                %D for description
                                %P for publisher
                                %J for raw JSON
                                default is "%A - %T (%Y) %I"
    -s, --sanitize            sanitize the output as a valid filename
    -q, --quiet               quiet mode: don't output errors
    -h, --help                show usage information
    -v, --version             show version information

isbn-detect

  Detect and output all ISBNs or ISSNs in the input block of text.

  Usage: isbn-detect < path/to/text-file

  Options:
    -t, --type=TYPE           type of information to extract:
                                ISBN (default)
                                ISSN
    -h, --help                show usage information
    -v, --version             show version information

isbn-extract

To extract ISBN / ISSN from an ebook's contents:

isbn-extract [-p <pages>] [-h] [-a] [-t isbn|issn] /path/to/ebook
// => First found match (or all matches using -a) or exit code 1

Supported formats:

  • epub using mutool
  • pdf using pdftotext
  • djvu using djvutxt

isbn-bulk-rename

To rename the ebooks with ISBN filenames in a given folder:

isbn-bulk-rename /path/to/folder

To rename the ebooks by extracting ISBNs from the content in a given folder:

isbn-bulk-rename -x /path/to/folder

Nautilus script

To wire isbn-bulk-rename into a GNOME Nautilus script:

  • Install libnotify-bin or equivalent package that includes the notify-send command
  • Create the following ~/.xsessionrc file:
if [ -d "$HOME/.nvm" ]; then
  export NVM_DIR="$HOME/.nvm"

  # This loads nvm
  [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
fi
  • Restart your X session sudo systemctl restart display-manager (on modern Ubuntu systems)
  • Create the following Nautilus script with an explanatory filename:
#!/bin/sh
isbn-bulk-rename "$@"
notify-send -t 3000 "ISBN renaming done"

Development

git clone https://github.com/infojunkie/isbn-info
npm install
npm test
npm run build
npm run link