Socket
Socket
Sign inDemoInstall

@types/strip-json-comments

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/strip-json-comments

Stub TypeScript definitions entry for strip-json-comments, which provides its own types definitions


Version published
Maintainers
1
Created

What is @types/strip-json-comments?

@types/strip-json-comments provides TypeScript type definitions for the strip-json-comments package, which is used to strip comments from JSON-like content.

What are @types/strip-json-comments's main functionalities?

Strip comments from JSON

This feature allows you to remove comments from JSON strings, making it easier to parse JSON data that includes comments.

const stripJsonComments = require('strip-json-comments');
const jsonWithComments = '{/*comment*/"key": "value"}';
const jsonWithoutComments = stripJsonComments(jsonWithComments);
console.log(jsonWithoutComments); // Output: {"key": "value"}

Other packages similar to @types/strip-json-comments

FAQs

Package last updated on 17 Jul 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc