Skip to content

Commit

Permalink
Publish v0.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Oct 20, 2019
1 parent 474a1e6 commit 6353f5d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

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

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# 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.

## Installation

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

## API

### `regjsgen.generate(ast)`

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.

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

## Support

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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "regjsgen",
"version": "0.5.0",
"version": "0.5.1",
"description": "Generate regular expressions from regjsparser’s AST.",
"homepage": "https://github.com/bnjmnt4n/regjsgen",
"main": "regjsgen.js",
Expand Down
4 changes: 2 additions & 2 deletions regjsgen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* 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>
*/
;(function() {
Expand Down

0 comments on commit 6353f5d

Please sign in to comment.