Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/release #10

Merged
merged 2 commits into from
Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## [1.1.2] - 2020-12-29
### Chore
* Breaking change. Convert package to esm module.
## [2.0.0] - 2021-09-06
### Fix
* Fix validator for valid isbn-13 returned as false
## [1.1.1] - 2020-12-27
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# ISBN Util

> **Breaking change** from version 2.0.0. From this version this module should be used as esm module. If you prefer use as CommonJS Module, install previous **v1.1.2**

This module **check if an ISBN is valid** or not **and** also provide a method to **generate** a **valid random ISBN-10** or **ISBN-13**

## Install
Expand All @@ -14,7 +16,7 @@ npm i isbn-util --save-dev
## Usage

```bash
const { validate, generate } = require('isbn-util');
import { validate, generate } from 'isbn-util';

validate('84-481-2231-3');
//=> true
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "isbn-util",
"version": "1.1.2",
"version": "2.0.0",
"description": "",
"main": "index.js",
"type": "module",
Expand Down