remove-title-name-ktp-npwp
v1.0.0
Published
package for remove job title and title name from ktp and npwp
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 DoeAdd 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 DoeCustom 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 frontlist salutation: My Github
Note
This package is not 100% expected because the OCR ID Card or NPWP is sometimes different format
