1.0.0 • Published 6 months ago

remove-title-name-ktp-npwp v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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

JSONtype
Frontstring[]
Backstring[]

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

1.0.0

6 months ago