Sha256: aae5872ae1c1d98cbd2859e2794eeecc49d390ae7ea07cd1c755c365b2b044f8
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
# JSRegexp [](https://badge.fury.io/rb/jsregexp) [](https://travis-ci.org/lucerion/jsregexp) [](https://codeclimate.com/github/lucerion/jsregexp) [](https://codeclimate.com/github/lucerion/jsregexp/coverage) JSRegexp is a converter from Ruby Regexp to valid JavaScript RegExp format ## Installation Add this line to your application's Gemfile: ```ruby gem 'jsregexp' ``` And then execute: $ bundle Or install it yourself as: $ gem install jsregexp ## Usage ``` ruby JSRegexp.convert(/\Afoo/) # => '^foo' JSRegexp.convert('/\Gbar/') # => '^bar' JSRegexp.convert('baz\Z') # => 'baz$' ``` ## License [MIT](http://opensource.org/licenses/MIT)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsregexp-0.1.3 | README.md |