update readme.md and npm version 1.0.0

This commit is contained in:
ryan.chan 2019-11-03 08:02:24 +08:00
parent e42ccf61aa
commit a1b084069a
2 changed files with 38 additions and 35 deletions

View File

@ -1,21 +1,21 @@
## hk-fps
A Nodejs module that help to generate QR code content string of the Hong Kong Fast Payment System. ## node-hk-fps
A Nodejs module that help to generate QR code content string of the Hong Kong Faster Payment System.
## Installation ## Installation
Install with npm Install with npm
```
npm install node-fps-hk npm install node-fps-hk
```
and in your code and in your code
```javascript
var fps = require('node-fps-hk') var fps = require('node-fps-hk')
```
## Usage ## Usage
```javascript
//import module //import module
var fps = require('node-fps-hk') var fps = require('node-fps-hk')
@ -33,19 +33,22 @@ and in your code
//generate qr content string //generate qr content string
var qrContent = fps.generate(); var qrContent = fps.generate();
```
## Example ## Example
```
cd ./example cd ./example
npm install npm install
node index.js node index.js
```
visit `http://localhost:8080` visit `http://localhost:8080`
## License ## License
MIT [MIT](https://github.com/ryanchanplc/node-fps-hk/blob/master/LICENSE)
## Useful Links ## Useful Links
Please find the specification of the QR Code used in FPS : [https://fps.hkicl.com.hk/eng/fps/merchants/qr_code.php](https://fps.hkicl.com.hk/eng/fps/merchants/qr_code.php) Please find the specification of the QR Code used in FPS at:
[https://fps.hkicl.com.hk/eng/fps/merchants/qr_code.php](https://fps.hkicl.com.hk/eng/fps/merchants/qr_code.php)
The QR Code used the **CRC16 CCITT** check sum. Please find more details : [http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html](http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html) The QR Code content string used in FPS contains the **CRC16 CCITT** check sum.
Please find more details at: [http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html](http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html)

View File

@ -1,6 +1,6 @@
{ {
"name": "node-fps-hk", "name": "node-fps-hk",
"version": "0.1.0", "version": "1.0.0",
"description": "A tool to generate the qrcode content string used by Fast Payment System in Hong Kong", "description": "A tool to generate the qrcode content string used by Fast Payment System in Hong Kong",
"main": "index.js", "main": "index.js",
"directories": { "directories": {