0.0.35 • Published 5 years ago

myinfo-masseuse v0.0.35

Weekly downloads
90
License
ISC
Repository
-
Last release
5 years ago

MyInfo Data Massager

Usage

Installation

Run npm install myinfo-masseuse --save

Using the api

let Index = require("index");

// Do MyInfo data massaging, returns a formatted myinfo data object
let massagedData = Index.massageData(myInfoData);

// Get Attributes, returns a comma delimited string of attributes
let attributes = Index.getAttributes();

Testing the api

checkout the repo At repo root directory run npm install To test run npm test -- testData.json will give u full massage output To test individual cards run npm test -- testData.json family will give family card output

List of keywords you can use

keywordsOutput
idId Card
famFamily Card
familyFamily Card
pollingPolling Card
reRegister of Electors Card
passportPassport Card
contactContact Card
incomeCPF and Income Card
cpfCPF and Income Card
propertyHDB Property Card
hdbHDB Property Card
vehicleVehicle Card
driving licenseDriving Licenses Card
licenseDriving Licenses Card
drivingDriving Licenses Card
employmentEmployment Card
spfWarrant and Spent Card
warrantWarrant and Spent Card
spentWarrant and Spent Card
moeEducation Card
educationEducation Card
attrattributes listing
attributesattributes listing

npm test calls index.js massageData using input data from the json file supplied e.g. test/testJson/testData.json

npm test -- test/testJson/testData.json

Sample Response

Sample response can be found in sample data response.json.

{
    "consent" : "Y", // Y or N
    "persondata" : [ ], //Array of objects
    "imgresource" : [ ] //Array of String image urls
}

* IMPORTANT * The above entire response will be encrypted in the jwe.

Ui Data Modeling

Detailed data modeling for UI description can be found here.

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.30

5 years ago

0.0.31

5 years ago

0.0.32

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago