Skip to content

hexindai/id5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 18, 2018
f7d1497 · Sep 18, 2018

History

22 Commits
May 25, 2018
Sep 17, 2018
May 25, 2018
May 25, 2018
Sep 17, 2018
May 25, 2018
Sep 18, 2018
Jun 4, 2018
Sep 18, 2018

Repository files navigation

id5

国政通 NodeJS SDK

npm Travis branch Codecov branch David deps Known Vulnerabilities npm download

Installation

npm i id5 -S

Usage

const ID5 = require('id5');

const id5 = new ID5({
  username: 'runrioter',
  password: 'runrioterpsw',
  wsdlUrl: 'https://some.domain/someServices?wsdl',
  key: '87651234',
  iv: '87651234',
});

const matched = await id5.validateIDInfo('马冬梅', '21062419820628XXXX');

if (matched) {
  // ...
} else {
  // ...
}

Debug

Set DEBUG env variable to run your program.

DEBUG=id5 npm run <some-script>

LICENSE

MIT