Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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

TypeScript definitions for strip-json-comments

  • 0.0.21-alpha
  • Source
  • npm
  • Socket score

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 25 May 2016

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