Socket
Socket
Sign inDemoInstall

@types/json5

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/json5

TypeScript definitions for JSON5


Version published
Weekly downloads
18M
decreased by-9.67%
Maintainers
1
Install size
3.79 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

Installation

npm install --save @types/json5

Summary

This package contains type definitions for JSON5 (http://json5.org/).

Details

Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/json5

Additional Details

  • Last updated: Fri, 01 Jul 2016 22:03:00 GMT
  • File structure: ProperModule
  • Library Dependencies: none
  • Module Dependencies: none
  • Global values: json5

Credits

These definitions were written by Jason Swearingen https://jasonswearingen.github.io.

FAQs

Last updated on 01 Jul 2016

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