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

regjsgen

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regjsgen - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

10

package.json
{
"name": "regjsgen",
"version": "0.5.0",
"version": "0.5.1",
"description": "Generate regular expressions from regjsparser’s AST.",

@@ -30,11 +30,11 @@ "homepage": "https://github.com/bnjmnt4n/regjsgen",

"test": "node tests/tests.js",
"coverage": "istanbul cover --report html tests/tests.js",
"coverage": "nyc --reporter=html npm test",
"update-fixtures": "node tests/update-fixtures.js"
},
"devDependencies": {
"codecov": "^3.1.0",
"istanbul": "~0.4.5",
"regjsparser": "~0.4.0",
"codecov": "^3.6.1",
"nyc": "^14.1.1",
"regjsparser": "~0.6.0",
"request": "^2.88.0"
}
}

@@ -1,4 +0,4 @@

# regjsgen [![Build status](https://travis-ci.org/bnjmnt4n/regjsgen.svg?branch=master)](https://travis-ci.org/bnjmnt4n/regjsgen) [![Code coverage status](https://codecov.io/gh/bnjmnt4n/regjsgen/branch/master/graph/badge.svg)](https://codecov.io/gh/bnjmnt4n/regjsgen)
# regjsgen [![Build status][travis-ci-img]][travis-ci] [![Code coverage status][codecov-img]][codecov]
Generate regular expressions from [regjsparser](https://github.com/jviereck/regjsparser)’s AST.
Generate regular expressions from [regjsparser][regjsparser]’s AST.

@@ -8,3 +8,3 @@ ## Installation

```bash
npm install --save regjsgen
npm i regjsgen
```

@@ -16,3 +16,3 @@

This function accepts an abstract syntax tree representing a regular expression, and returns the generated regular expression string.
This function accepts an abstract syntax tree representing a regular expression (see [regjsparser][regjsparser]), and returns the generated regular expression string.

@@ -35,2 +35,9 @@ ```js

Tested in Node.js 0.10, 0.12, 4, 6 and 8.
Tested in Node.js 0.10, 0.12, 4, 6, 8, 10 and 12.
[travis-ci]: https://travis-ci.org/bnjmnt4n/regjsgen
[travis-ci-img]: https://travis-ci.org/bnjmnt4n/regjsgen.svg?branch=master
[codecov]: https://codecov.io/gh/bnjmnt4n/regjsgen
[codecov-img]: https://codecov.io/gh/bnjmnt4n/regjsgen/branch/master/graph/badge.svg
[regjsparser]: https://github.com/jviereck/regjsparser
/*!
* regjsgen 0.5.0
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* regjsgen 0.5.1
* Copyright 2014-2019 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Available under MIT license <https://github.com/bnjmnt4n/regjsgen/blob/master/LICENSE>

@@ -304,3 +304,3 @@ */

function generateTerm(node) {
assertType(node.type, 'anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value');
assertType(node.type, 'anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value|dot');

@@ -307,0 +307,0 @@ return generate(node);

Sorry, the diff of this file is not supported yet

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