slk-581
v1.0.2
Published
SLK-581 calculator
Downloads
2
Readme
slk-581
Makes SLK-581 indicators, recently popular because of the Australian Census.
var makeIndicator = require('slk-581').makeIndicator;
var indicator = makeIndicator({
givenName: 'Jane',
familyName: 'Citizen',
born: {
year: 1970, // bloody Gen-Xer
month: 2,
day: 1,
accuracy: {
year: 'A', // accurate
month: 'E', // estimated
day: 'U', // unknown
},
},
sex: 2, // 1: male; 2: female; 3: intersex/indeterminate; 9: unknown
});
console.log(indicator); // -> ITZAN010219702UEA
References: