UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

119 lines (118 loc) 9.07 kB
{ "_args": [ [ { "raw": "regex-escape@^3.4.0", "scope": null, "escapedName": "regex-escape", "name": "regex-escape", "rawSpec": "^3.4.0", "spec": ">=3.4.0 <4.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/parse-it" ] ], "_from": "regex-escape@>=3.4.0 <4.0.0", "_id": "regex-escape@3.4.8", "_inCache": true, "_location": "/regex-escape", "_nodeVersion": "8.6.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/regex-escape-3.4.8.tgz_1514167740253_0.06033088709227741" }, "_npmUser": { "name": "ionicabizau", "email": "bizauionica@gmail.com" }, "_npmVersion": "5.3.0", "_phantomChildren": {}, "_requested": { "raw": "regex-escape@^3.4.0", "scope": null, "escapedName": "regex-escape", "name": "regex-escape", "rawSpec": "^3.4.0", "spec": ">=3.4.0 <4.0.0", "type": "range" }, "_requiredBy": [ "/parse-it" ], "_resolved": "https://registry.npmjs.org/regex-escape/-/regex-escape-3.4.8.tgz", "_shasum": "d819372b24fb2659174196ecbecfa69d8612f30d", "_shrinkwrap": null, "_spec": "regex-escape@^3.4.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/parse-it", "author": { "name": "Ionică Bizău", "email": "bizauionica@gmail.com", "url": "https://ionicabizau.net" }, "blah": { "thanks": [ "Big thanks to [CoolAj86](http://stackoverflow.com/users/151312/coolaj86) for posting [this answer](http://stackoverflow.com/a/6969486/1420197). This library uses the black magic regex from that answer. :sparkles:" ] }, "bugs": { "url": "https://github.com/IonicaBizau/regex-escape.js/issues" }, "contributors": [ { "name": "CoolAJ86 http://stackoverflow.com/users/151312/coolaj86" } ], "dependencies": {}, "description": "Escapes input characters to be used in regular expressions.", "devDependencies": {}, "directories": { "example": "example" }, "dist": { "integrity": "sha512-DG0VFPTDwfl+XsuVaM/0RmGJvCpZNB9UG/limzbev50XQ44G4mbOG+0Eh5M7Al9JB68NbP7YeY1KhDzpnX7qSw==", "shasum": "d819372b24fb2659174196ecbecfa69d8612f30d", "tarball": "https://registry.npmjs.org/regex-escape/-/regex-escape-3.4.8.tgz" }, "files": [ "bin/", "app/", "lib/", "dist/", "src/", "scripts/", "resources/", "menu/", "cli.js", "index.js", "bloggify.js", "bloggify.json", "bloggify/" ], "gitHead": "93c7f2549acf50970e07a4ad4fa27ba420040727", "homepage": "https://github.com/IonicaBizau/regex-escape.js", "keywords": [ "regex", "escape" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "ionicabizau", "email": "bizauionica@gmail.com" } ], "name": "regex-escape", "optionalDependencies": {}, "readme": "<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->\n\n\n# regex-escape\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/regex-escape.svg)](https://www.npmjs.com/package/regex-escape) [![Downloads](https://img.shields.io/npm/dt/regex-escape.svg)](https://www.npmjs.com/package/regex-escape)\n\n> Escapes input characters to be used in regular expressions.\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save regex-escape\n\n# Using yarn\nyarn add regex-escape\n```\n\n\n## :clipboard: Example\n\n\n\n```js\n// Dependencies\nvar RegexEscape = require(\"regex-escape\");\n\nconsole.log(RegexEscape(\"{#/}\"));\n// => \\{#\\/\\}\n```\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n## :memo: Documentation\n\n\n### `RegexEscape(input)`\nEscapes a string for using it in a regular expression.\n\n#### Params\n\n- **String** `input`: The string that must be escaped.\n\n#### Return\n- **String** The escaped string.\n\n### `proto()`\nAdds the `RegexEscape` function to `RegExp` class.\n\n#### Return\n- **Function** The `RegexEscape` function.\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\n\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n ![](https://i.imgur.com/z6OQI95.png)\n\nThanks! :heart:\n\n\n## :cake: Thanks\nBig thanks to [CoolAj86](http://stackoverflow.com/users/151312/coolaj86) for posting [this answer](http://stackoverflow.com/a/6969486/1420197). This library uses the black magic regex from that answer. :sparkles:\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n\n - [`barbe`](https://github.com/IonicaBizau/barbe)—Like mustache, but simple, tiny and fast.\n - [`bloggify-router`](https://github.com/Bloggify/default-router#readme) (by Bloggify)—The default Bloggify router.\n - [`camelo`](https://github.com/IonicaBizau/camelo#readme)—Convert a string into camel case style by providing the separators.\n - [`chance-token-replacer`](https://github.com/drewbrokke/chance-token-replacer#readme) (by Drew Brokke)—A simple utility to replace tokens in a string with generations from the chance random generator helper\n - [`css-assets`](https://github.com/manojchandrashekar/css-assets#readme) (by Manoj Chandrashekar)—Helps build CSS files and referenced assets.\n - [`doodle-data`](https://github.com/regular/doodle-data#readme) (by Jan Bölsche)—get the data of a doodle.com poll\n - [`emoji.css`](https://github.com/IonicaBizau/emoji.css)—Your website. Emojified. Like FontAwesome for emojis.\n - [`engine-flow-types`](https://github.com/jillix/engine-flow-types#readme) (by jillix)—Low level library providing Engine flow types.\n - [`html-encoder-decoder`](https://github.com/IonicaBizau/html-encoder-decoder)—HTML Encoder / Decoder - Converts characters to their corresponding HTML Entities\n - [`hubot-lgtm`](https://github.com/catops/hubot-lgtm#readme) (by Chris Contolini)—Automatically merge pull requests after contributors have given the thumbs up\n - [`luhnify`](https://github.com/koopero/luhnify#readme) (by Samm Cooper)—Generate random Luhn sequences, such as credit card numbers.\n - [`parse-it`](https://github.com/IonicaBizau/parse-it#readme)—Configurable string templating, without separators.\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n[badge_patreon]: http://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: http://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: http://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: http://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\n[donate-now]: http://i.imgur.com/6cMbHOC.png\n\n[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(https%3A%2F%2Fionicabizau.net)&year=2015#license-mit\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+ssh://git@github.com/IonicaBizau/regex-escape.js.git" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "version": "3.4.8" }