remove-title-name-ktp-npwp
v1.0.0
Published
package for remove job title and title name from ktp and npwp
Downloads
1
Readme
Remove Title Name KTP or NPWP
to use this package you delete title from ktp or npwp by OCR
Usage
import { nameID } from 'remove-title-name-ktp-npwp'
const result = nameID('Dr. Jhon Doe, ST')
console.log(result) // Jhon Doe
Add title custom
import { nameID } from 'remove-title-name-ktp-npwp'
const result = nameID('Dr. Raja, Jhon Doe, ST', {front: ['Raja']}) // for add custom title front
console.log(result) // Jhon Doe
const result = nameID('Dr. Raja, Jhon Doe, Roro, ST', {front: ['Raja'],back:['Roro']}) // for add custom title front and back
console.log(result) // Jhon Doe
Custom title
| JSON | type |
| :------ | :------- |
| Front
| string[] |
| Back
| string[] |
example:
nameID('Dr. Raja, Jhon Doe, Roro, ST', {front: ['Raja'],back:['Roro']}) // front and back
nameID('Dr. Raja, Jhon Doe, Roro, ST', {back:['Roro']}) // only back
nameID('Dr. Raja, Jhon Doe, Roro, ST', {front: ['Raja'],back:['Roro']}) //only front
list salutation: My Github
Note
This package is not 100% expected because the OCR ID Card or NPWP is sometimes different format