diff --git a/LICENSE b/LICENSE index 907cb2e..94131eb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright 2014-2018 Benjamin Tan +Copyright 2014-2019 Benjamin Tan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 74dc3e9..e341108 100644 --- a/README.md +++ b/README.md @@ -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'); @@ -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 diff --git a/package-lock.json b/package-lock.json index ef14bf7..166a1aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "regjsgen", - "version": "0.5.0", + "version": "0.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a534b81..75c987a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/regjsgen.js b/regjsgen.js index f412c97..b390103 100644 --- a/regjsgen.js +++ b/regjsgen.js @@ -1,6 +1,6 @@ /*! - * regjsgen 0.5.0 - * Copyright 2014-2018 Benjamin Tan + * regjsgen 0.5.1 + * Copyright 2014-2019 Benjamin Tan * Available under MIT license */ ;(function() {