Socket
Socket
Sign inDemoInstall

@types/json5

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/json5

Stub TypeScript definitions entry for json5, which provides its own types definitions


Version published
Weekly downloads
20M
decreased by-0.65%
Maintainers
1
Install size
272 kB
Created
Weekly downloads
 

Package description

What is @types/json5?

The @types/json5 npm package provides TypeScript type definitions for JSON5, a JSON format extension that aims to make JSON code easier for humans to write and read. This package doesn't add functionality to JSON5 itself but offers type support for TypeScript developers, ensuring that interactions with JSON5 data are type-safe.

What are @types/json5's main functionalities?

Type Definitions for JSON5 Parsing

Provides type definitions for using JSON5's parse method, allowing for the parsing of JSON5 string data into JavaScript objects with TypeScript type safety.

"import * as JSON5 from 'json5';\nconst obj: any = JSON5.parse('{\"key\": \"value\"}');"

Type Definitions for JSON5 Stringification

Offers type definitions for JSON5's stringify method, enabling the conversion of JavaScript objects into JSON5 strings with TypeScript type safety.

"import * as JSON5 from 'json5';\nconst jsonString: string = JSON5.stringify({ key: 'value' });"

Other packages similar to @types/json5

Readme

Source

This is a stub types definition for @types/json5 (http://json5.org/).

json5 provides its own type definitions, so you don't need @types/json5 installed!

FAQs

Last updated on 01 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc