{"name":"verbal-expressions","description":"JavaScript Regular expressions made easy","version":"1.0.1","keywords":["regular expressions","regex"],"homepage":"https://github.com/VerbalExpressions/JSVerbalExpressions","devDependencies":{"ava":"^0.25.0","babel-core":"^6.26.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-env":"^1.7.0","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.10.0","grunt":"^1.0.3","grunt-ava":"^0.19.0","grunt-babel":"^7.0.0","grunt-contrib-uglify-es":"^3.3.0","grunt-eslint":"^21.0.0","grunt-markdownlint":"^2.1.0","grunt-sourcemap-localize":"^0.1.0","grunt-umd":"^3.0.0","nyc":"^13.1.0"},"repository":{"type":"git","url":"git://github.com/VerbalExpressions/JSVerbalExpressions.git"},"bugs":{"url":"https://github.com/VerbalExpressions/JSVerbalExpressions/issues"},"main":"dist/verbalexpressions.js","license":"MIT","scripts":{"test":"grunt test","test:verbose":"grunt test:verbose","compile":"grunt compile","grunt":"grunt","build":"grunt build","docs":"grunt docs"},"types":"./typings/VerbalExpressions.d.ts","engines":{"node":">=9.2.0"},"dependencies":{},"gitHead":"02581776b3c3b833e205ec6c12e44cdb4e0b9f50","_id":"verbal-expressions@1.0.1","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"verbalexpressions","email":"ionutvmi@gmail.com"},"dist":{"integrity":"sha512-VcRv4grS8gsUVncBcLcaeuCt5UllWLtXqfwtwlcHaLypG13XJ6ReTHo/MreWa3V79oEBKt2hxQaE6rY9La39eQ==","shasum":"3997e3344986960987d4126d142225ca362deec8","tarball":"http://registry-npm.ywwl.com/verbal-expressions/download/verbal-expressions-1.0.1.tgz","fileCount":33,"unpackedSize":133398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBfvJCRA9TVsSAnZWagAArZUP+QGCq/niDM/aJ6zpTqoK\nOgyDsrzxNoFNITq4VxvQqQAdMAa1lhK3Xu7jC16PsLZJ2lMShME4PA4giUbS\ngPzTAwMpEJJLZuHjcn+pqQwuIftYII2AUrh/L9Cy2pC0idSbVoebRZ6yTaMo\n/4/SGDHLb0kkPbclhn2S9/JqOBiXkQrNY4EUfysi/9Ul9jwjUI7n0PcsflGj\nk6j1EDuNPHayzA0RxZkIHwDM9B1G9aMI2HgXo/wUqccTQeS/kXhavkm8wkKl\nnftVcOEHeooe629l8SRk07g0OL/AKN6gHPz1y5ujzaJIma8ki6HGxr6y0So2\nwwYcXys5yyldysnb2j0rksszQe8/gYhR5L8QMgdpTMXBbSCaWz9LUb6qfC6a\nqGpJR2g6DiBbeFtdVCcEg8nRdF/QMmIgjDNGi8UmwewtkJ/LfUck6j5uVo6f\n1JwdldAMzvsnWZ3NiTcYkegAXYzIMqjSrFkpsBMU9Z59uk0qfF/vDDiGKo+x\npyOSmWv5hZkbI/K1qnN3+IBL5t+xCRiX1TdnQfeXLRAe4sSI0888YhkKWN5C\nPwu0bNdUheGoL2zsxxsg7nMrLn+8K4lmyz7/4gppsQX/Z/AVwBlwQdByoCA/\nKUEeeXnE1KAawwcak9XvMrfoQco65YbDUA8TYo+eszfZhlOK5io7DAkNEqaQ\nwW84\r\n=9GVS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF0baOAnyXBOVfxly2YEGtsuxIe6zHr5M1UfL++FVYqAIgekISs2+uQI4ylU/LC4lbKcfQpqqWSnHeARKkEt5MDS8="}],"size":28047,"noattachment":false,"key":"/verbal-expressions/-/verbal-expressions-1.0.1.tgz"},"maintainers":[{"name":"verbalexpressions","email":"oleg.b.seletsky@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/verbal-expressions_1.0.1_1560673225149_0.4492049451639697"},"_hasShrinkwrap":false,"readme":"# VerbalExpressions\r\n\r\n[![Build Status](https://travis-ci.org/VerbalExpressions/JSVerbalExpressions.svg)](https://travis-ci.org/VerbalExpressions/JSVerbalExpressions)\r\n[![Latest Version](https://img.shields.io/npm/v/verbal-expressions.svg)](https://www.npmjs.com/package/verbal-expressions)\r\n[![jsDelivr](https://img.shields.io/badge/dynamic/json.svg?label=jsDelivr&url=https%3A%2F%2Fdata.jsdelivr.com%2Fv1%2Fpackage%2Fnpm%2Fverbal-expressions&query=%24..tags.latest&colorB=blue&prefix=v)](https://www.jsdelivr.com/package/npm/verbal-expressions)\r\n[![License](https://img.shields.io/github/license/VerbalExpressions/JSVerbalExpressions.svg)](LICENSE)\r\n\r\n## JavaScript Regular Expressions made easy\r\n\r\nVerbalExpressions is a JavaScript library that helps construct difficult regular expressions.\r\n\r\n## How to get started\r\n\r\n### In the browser\r\n\r\n```html\r\n<script src=\"VerbalExpressions.js\"></script>\r\n```\r\n\r\nOr use the [jsDelivr CDN](https://www.jsdelivr.com/package/npm/verbal-expressions).\r\n\r\n### On the server (node.js)\r\n\r\nInstall:\r\n\r\n```sh\r\nnpm install verbal-expressions\r\n```\r\n\r\nRequire:\r\n\r\n```js\r\nconst VerEx = require('verbal-expressions');\r\n```\r\n\r\nOr use ES6's `import`:\r\n\r\n```js\r\nimport VerEx from 'verbal-expressions';\r\n```\r\n\r\n## Running tests\r\n\r\n```sh\r\nnpm test\r\n```\r\n\r\n(or)\r\n\r\n```sh\r\nnpm run test:verbose\r\n```\r\n\r\n## Creating a minified version\r\n\r\n```sh\r\nnpm run build\r\n```\r\n\r\nThis will run [Babel](https://babeljs.io) on `VerbalExpressions.js` and output the result to `dist/verbalexpressions.js`. A minified version of the same will also be written to `dist/verbalexpressions.min.js`.\r\n\r\nA source map will also be created in `dist`, so you can use the original \"un-babelified\", unminified source file for debugging purposes.\r\n\r\n## API documentation\r\n\r\nYou can find the API documentation at [verbalexpressions.github.io/JSVerbalExpressions](https://verbalexpressions.github.io/JSVerbalExpressions). You can find the source code for the docs in [`docs`](docs/).\r\n\r\n## Examples\r\n\r\nHere are some simple examples to give an idea of how VerbalExpressions works:\r\n\r\n### Testing if we have a valid URL\r\n\r\n```js\r\n// Create an example of how to test for correctly formed URLs\r\nconst tester = VerEx()\r\n    .startOfLine()\r\n    .then('http')\r\n    .maybe('s')\r\n    .then('://')\r\n    .maybe('www.')\r\n    .anythingBut(' ')\r\n    .endOfLine();\r\n\r\n// Create an example URL\r\nconst testMe = 'https://www.google.com';\r\n\r\n// Use RegExp object's native test() function\r\nif (tester.test(testMe)) {\r\n    alert('We have a correct URL'); // This output will fire\r\n} else {\r\n    alert('The URL is incorrect');\r\n}\r\n\r\nconsole.log(tester); // Outputs the actual expression used: /^(http)(s)?(\\:\\/\\/)(www\\.)?([^\\ ]*)$/\r\n```\r\n\r\n### Replacing strings\r\n\r\n```js\r\n// Create a test string\r\nconst replaceMe = 'Replace bird with a duck';\r\n\r\n// Create an expression that seeks for word \"bird\"\r\nconst expression = VerEx().find('bird');\r\n\r\n// Execute the expression like a normal RegExp object\r\nconst result = expression.replace(replaceMe, 'duck');\r\n\r\n// Outputs \"Replace duck with a duck\"\r\nalert(result);\r\n```\r\n\r\n### Shorthand for string replace\r\n\r\n```js\r\nconst result = VerEx().find('red').replace('We have a red house', 'blue');\r\n\r\n// Outputs \"We have a blue house\"\r\nalert(result);\r\n```\r\n\r\n## Contributions\r\n\r\nPull requests are warmly welcome!\r\n\r\nClone the repo and fork:\r\n\r\n```sh\r\ngit clone https://github.com/VerbalExpressions/JSVerbalExpressions.git\r\n```\r\n\r\n### Style guide\r\n\r\nThe [Airbnb](https://github.com/airbnb/javascript) style guide is loosely used as a basis for creating clean and readable JavaScript code. Check [`.eslintrc`](.eslintrc).\r\n\r\nCheck out these slide decks for handy Github & git tips:\r\n\r\n- [Git and Github Secrets](https://zachholman.com/talk/git-github-secrets/)\r\n- [More Git and Github Secrets](https://zachholman.com/talk/more-git-and-github-secrets/)\r\n\r\n## Tools\r\n\r\n- https://verbalregex.com - it's a wrapper of JSVerbalExpressions; users can write down the code and compile to regex\r\n- https://jsbin.com/metukuzowi/edit?js,console - JSBin Playground\r\n\r\n## Other Implementations\r\n\r\nYou can see an up to date list of all ports on [VerbalExpressions.github.io](https://VerbalExpressions.github.io).\r\n\r\n- [Ruby](https://github.com/ryan-endacott/verbal_expressions)\r\n- [C#](https://github.com/VerbalExpressions/CSharpVerbalExpressions)\r\n- [Python](https://github.com/VerbalExpressions/PythonVerbalExpressions)\r\n- [Java](https://github.com/VerbalExpressions/JavaVerbalExpressions)\r\n- [Groovy](https://github.com/VerbalExpressions/GroovyVerbalExpressions)\r\n- [PHP](https://github.com/VerbalExpressions/PHPVerbalExpressions)\r\n- [Haskell](https://github.com/VerbalExpressions/HaskellVerbalExpressions)\r\n- [Haxe](https://github.com/VerbalExpressions/HaxeVerbalExpressions)\r\n- [C++](https://github.com/VerbalExpressions/CppVerbalExpressions)\r\n- [Objective-C](https://github.com/VerbalExpressions/ObjectiveCVerbalExpressions)\r\n- [Perl](https://github.com/VerbalExpressions/PerlVerbalExpressions)\r\n- [Swift](https://github.com/VerbalExpressions/SwiftVerbalExpressions)\r\n\r\nIf you would like to contribute another port (which would be awesome!), please [open an issue](https://github.com/VerbalExpressions/implementation/issues/new) specifying the language in the [VerbalExpressions/implementation repo](https://github.com/VerbalExpressions/implementation/issues). Please don't open PRs for other languages against this repo.\r\n","publish_time":1560673225375,"_cnpm_publish_time":1560673225375,"dist-tags":{"latest":"1.0.2"}}