Giter Club home page Giter Club logo

isbn-gen's Introduction

isbn-gen

Build Status codecov

isbn-gen is the command line tool which generates random and valid ISBN(International Standard Book Number).

Install

Get repository by go get and use make install to make command available.

$ go get -d github.com/hidapple/isbn-gen
$ cd $GOPATH/src/github.com/hidapple/isbn-gen
$ make install

Usage

Generate random ISBN code.

$ isbn-gen
9784561107828

Option Flags

-help, -h

Print a help message.

-version, -v

Print the version of isbn-gen.

-list, -l

Print supported ISBN registration group identifier list. Currently isbn-gen supports following group identifiers.

+-------------------+--------------+--------+------------+
| IDENTIFYING GROUP | ABBREVIATION | PREFIX | IDENTIFIER |
+-------------------+--------------+--------+------------+
| English           | en           |    978 |          0 |
| English2          | en2          |    978 |          1 |
| French            | fr           |    978 |          2 |
| German            | de           |    978 |          3 |
| Japan             | jp           |    978 |          4 |
| Russia            | ru           |    978 |          5 |
| China             | cn           |    978 |          7 |
| Brazil            | br           |    978 |         65 |
| Czech             | cz           |    978 |         80 |
| India             | in           |    978 |         81 |
| Norge             | no           |    978 |         82 |
| Poland            | pl           |    978 |         83 |
| Spain             | es           |    978 |         84 |
| Brazil2           | br2          |    978 |         85 |
| Serbia            | rs           |    978 |         86 |
| Denmark           | dk           |    978 |         87 |
| Italy             | it           |    978 |         88 |
| SouthKorea        | kr           |    978 |         89 |
| Netherlands       | nl           |    978 |         90 |
| Sweden            | se           |    978 |         91 |
| NGO               | ngo          |    978 |         92 |
| India2            | in2          |    978 |         93 |
| Netherlands2      | nl2          |    978 |         94 |
| French2           | fr2          |    979 |         10 |
| SouthKorea2       | kr2          |    979 |         11 |
| Italy2            | it2          |    979 |         12 |
+-------------------+--------------+--------+------------+

-id-group, -id

The ISBN registration group identifier name or abbreviation. You can specify the registration identifier group from the table listed above then isbn-gen generates ISBN which belongs to the given identifier group.

$ isbn-gen -id-group cn
9787644999709

-code, -c

The code part of ISBN which consist of publisher code and book code. You can specify the code part prefix of ISBN.

$ isbn-gen -code 123
9784123372770

License

MIT

isbn-gen's People

Contributors

hidapple avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dfotopoulos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.