Skip to content

Commit

Permalink
Update formatters usage sections in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuh committed Sep 23, 2021
1 parent 70db55b commit fba3ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ const ncf = 'E319123402392'
const isNCFValid = validateNCF(ncf) // true
```

### `formatCedula(cedula: string)`
### `formatCedula(cedula: string, removeOrAddDashes? = 'remove')`
```ts
import { formatCedula } from 'dr-utils'

const noDashes = formatCedula('402-2057991-2') // 40220579912
const withDashes = formatCedula('40220579912') // 402-2057991-2
const withDashes = formatCedula('40220579912', 'add') // 402-2057991-2
```

### `formatRNC(cedula: string)`
### `formatRNC(cedula: string, removeOrAddDashes? = 'remove')`
```ts
import { formatRNC } from 'dr-utils'

const noDashes = formatRNC('130-50029-2') // 130500292
const withDashes = formatRNC('130500292') // 130-50029-2
const withDashes = formatRNC('130500292', 'add') // 130-50029-2
```

## Copyright
Expand Down

0 comments on commit fba3ee1

Please sign in to comment.