7.2.4 • Published 4 years ago

indicative-formatters v7.2.4

Weekly downloads
2,871
License
MIT
Repository
github
Last release
4 years ago

Indicative Formatters

Collection of error formatters used by Indicative

circleci-image npm-image npm.io

Indicative has first class support for formatting error messages with the help of an Error formatter. This repo contains a handful of them.

Table of contents

Usage

Install the package from npm registry as follows:

npm i indicative-formatters

# yarn
yarn add indicative-formatters

and then use it as follows:

import { VanillaFormatter } from 'indicative-formatters'

const formatter = new VanillaFormatter()
formatter.addError('Required validation failed', 'username', { name: 'required', args: [] })

// Get all errors
formatter.toJSON()

API Docs

Following are the autogenerated files via Typedoc

Maintainers

Harminder virk

7.2.4

4 years ago

7.2.3

4 years ago

7.2.2

4 years ago

7.2.1

5 years ago

7.2.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

7.1.1

5 years ago

7.0.0

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago