Skip to content

Commit 6353f5d

Browse files
committed
Publish v0.5.1.
1 parent 474a1e6 commit 6353f5d

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
3+
Copyright 2014-2019 Benjamin Tan <https://bnjmnt4n.now.sh/>
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# 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)
1+
# regjsgen [![Build status][travis-ci-img]][travis-ci] [![Code coverage status][codecov-img]][codecov]
22

3-
Generate regular expressions from [regjsparser](https://github.com/jviereck/regjsparser)’s AST.
3+
Generate regular expressions from [regjsparser][regjsparser]’s AST.
44

55
## Installation
66

77
```bash
8-
npm install --save regjsgen
8+
npm i regjsgen
99
```
1010

1111
## API
1212

1313
### `regjsgen.generate(ast)`
1414

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

1717
```js
1818
var regjsparser = require('regjsparser');
@@ -30,4 +30,11 @@ regex = regjsgen.generate(ast);
3030

3131
## Support
3232

33-
Tested in Node.js 0.10, 0.12, 4, 6 and 8.
33+
Tested in Node.js 0.10, 0.12, 4, 6, 8, 10 and 12.
34+
35+
36+
[travis-ci]: https://travis-ci.org/bnjmnt4n/regjsgen
37+
[travis-ci-img]: https://travis-ci.org/bnjmnt4n/regjsgen.svg?branch=master
38+
[codecov]: https://codecov.io/gh/bnjmnt4n/regjsgen
39+
[codecov-img]: https://codecov.io/gh/bnjmnt4n/regjsgen/branch/master/graph/badge.svg
40+
[regjsparser]: https://github.com/jviereck/regjsparser

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "regjsgen",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Generate regular expressions from regjsparser’s AST.",
55
"homepage": "https://github.com/bnjmnt4n/regjsgen",
66
"main": "regjsgen.js",

regjsgen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* regjsgen 0.5.0
3-
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
2+
* regjsgen 0.5.1
3+
* Copyright 2014-2019 Benjamin Tan <https://bnjmnt4n.now.sh/>
44
* Available under MIT license <https://github.com/bnjmnt4n/regjsgen/blob/master/LICENSE>
55
*/
66
;(function() {

0 commit comments

Comments
 (0)