secode
v1.1.34
Published
Manipulating security codes (for China market currently)
Downloads
9
Readme
secode
Manipulating security codes, for China market only for now.
Install
$ npm install secode
Usage
'sina' is the same as 1.
var secode = require('secode');
secode.restring('159915,600663','sina');
secode.recode('sz159915',0);
secode.recode('159915','1');
secode.recode('sz159915',2);
secode.recode('159915','3');
return:
'sz159915,sh600663'
'159915'
'sz159915'
'159915sz'
'159915.sz'