@hint/utils-json
TypeScript icon, indicating that this package has built-in type declarations

1.0.27 • Public • Published

JSON utils (@hint/utils-json)

Set of helpers to process JSON.

Installation

This package is installed automatically when adding webhint to your project so running the following is enough:

npm install hint --save-dev

Utils

  • finalConfig: Calculate the final configuration taking into account the extend property.
  • parseJSON: Parse a json string.
  • loadJSONFile: Loads a JSON a file.
  • JSONLocationOptions: Type representing the options for the location.
  • JSONLocationFunction: Type representing the options for the location function.
  • IJSONResult: Interface for a JSONResult.
  • ExtendableConfiguration: Type representing a extendable configuration.
  • IParsingError: Interface for an error parsing.
  • ISchemaValidationError: Interface for an error validating a json.
  • SchemaValidationResult: Type representing the result of a json validation.
  • GroupedError: Type representing a group of errors validating a json.
  • validate: Validate a json given a schema.

Package Sidebar

Install

npm i @hint/utils-json

Homepage

webhint.io/

Weekly Downloads

12,661

Version

1.0.27

License

Apache-2.0

Unpacked Size

158 kB

Total Files

31

Last publish

Collaborators

  • leotlee
  • vidorteg
  • oaflynn
  • molant
  • antross