🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

block-comment-regex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

block-comment-regex

RegExp for matching JavaScript-style block comments in a string. Should also work for SASS, LESS and other languages with the same block comment format.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

block-comment-regex NPM version

RegExp for matching JavaScript-style block comments in a string. Should also work for SASS, LESS and other languages with the same block comment format.

Install

Install with npm

npm i block-comment-regex --save

Run tests

npm test

Usage

var re = require('block-comment-regex');

console.log(re().exec('abc /* block comment */ abc'));
// returns:
[ '/* block comment */',
  ' block comment ',
  index: 4,
  input: 'abc /* block comment */ abc' ]

API

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license

This file was generated by verb on November 23, 2014.

Keywords

block

FAQs

Package last updated on 23 Nov 2014

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