Skip to content

Commit

Permalink
Merge pull request #11 from JuanMaRuiz/fix/readme
Browse files Browse the repository at this point in the history
Fix/readme
  • Loading branch information
JuanMaRuiz committed Sep 7, 2021
2 parents 7bd4f6f + f2d72c1 commit 52ac368
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.1] - 2020-09-07
### Fix documentation
* Fix "How to use" section in README

## [1.0.0] - 2020-09-06
### Convert to esm module
* Package converted to esm module
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ npm i personal-document-generator --save-dev

## Usage


**Version v1.0.0**

```bash
import { getValidDNI, generateValidNIE } from 'personal-document-generator';

getValidDNI();
//=> '30292557Q'

getValidNIE();
//=> 'Z5247524X'
```
**Version v0.1.6**
```bash
const { getValidDNI, generateValidNIE } = require('personal-document-generator');

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": "personal-document-generator",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"type": "module",
"main": "index.js",
Expand Down

0 comments on commit 52ac368

Please sign in to comment.