From fba3ee129918fef093543da033fab802ea100b9d Mon Sep 17 00:00:00 2001 From: Miguel Araujo Date: Wed, 22 Sep 2021 21:23:23 -0400 Subject: [PATCH] Update formatters usage sections in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d4c8509..388f553 100644 --- a/README.md +++ b/README.md @@ -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