Socket
Socket
Sign inDemoInstall

strip-comments

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-comments - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

1

index.js

@@ -89,3 +89,2 @@ 'use strict';

* @return {String}
* @api public
*/

@@ -92,0 +91,0 @@

2

package.json
{
"name": "strip-comments",
"description": "Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "https://github.com/jonschlinkert/strip-comments",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -84,12 +84,2 @@ # strip-comments [![NPM version](https://badge.fury.io/js/strip-comments.svg)](http://badge.fury.io/js/strip-comments) [![Build Status](https://travis-ci.org/jonschlinkert/strip-comments.svg)](https://travis-ci.org/jonschlinkert/strip-comments)

### [discard](index.js#L92)
Remove a comment from the given string.
**Params**
* `string` **{String}**
* `options` **{Object}**: Pass `safe: true` to keep comments with `!`
* `returns` **{String}**
## Related projects

@@ -96,0 +86,0 @@

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