UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

87 lines (86 loc) 8.36 kB
{ "_args": [ [ { "raw": "linkify-it@https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "scope": null, "escapedName": "linkify-it", "name": "linkify-it", "rawSpec": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "spec": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "type": "remote" }, "/Users/code/tfs/agent3/_work/2/s/extensions/markdown" ] ], "_from": "linkify-it@https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "_id": "linkify-it@2.0.3", "_inCache": true, "_location": "/linkify-it", "_phantomChildren": {}, "_requested": { "raw": "linkify-it@https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "scope": null, "escapedName": "linkify-it", "name": "linkify-it", "rawSpec": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "spec": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "type": "remote" }, "_requiredBy": [ "/", "/markdown-it" ], "_resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "_shasum": "d94a4648f9b1c179d64fa97291268bdb6ce9434f", "_shrinkwrap": null, "_spec": "linkify-it@https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz", "_where": "/Users/code/tfs/agent3/_work/2/s/extensions/markdown", "bugs": { "url": "https://github.com/markdown-it/linkify-it/issues" }, "dependencies": { "uc.micro": "^1.0.1" }, "description": "Links recognition library with FULL unicode support", "devDependencies": { "ansi": "^0.3.0", "autoprefixer-stylus": "^0.11.0", "benchmark": "^2.1.0", "browserify": "*", "chai": "^3.5.0", "coveralls": "^2.11.2", "eslint": "^3.8.0", "istanbul": "*", "jade": "^1.11.0", "mdurl": "^1.0.0", "mocha": "^3.1.2", "ndoc": "^5.0.1", "stylus": "~0.54.5", "tlds": "^1.166.0" }, "files": [ "index.js", "lib/" ], "homepage": "https://github.com/markdown-it/linkify-it#readme", "keywords": [ "linkify", "linkifier", "autolink", "autolinker" ], "license": "MIT", "name": "linkify-it", "optionalDependencies": {}, "readme": "linkify-it\n==========\n\n[![Build Status](https://img.shields.io/travis/markdown-it/linkify-it/master.svg?style=flat)](https://travis-ci.org/markdown-it/linkify-it)\n[![NPM version](https://img.shields.io/npm/v/linkify-it.svg?style=flat)](https://www.npmjs.org/package/linkify-it)\n[![Coverage Status](https://img.shields.io/coveralls/markdown-it/linkify-it/master.svg?style=flat)](https://coveralls.io/r/markdown-it/linkify-it?branch=master)\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/markdown-it/linkify-it)\n\n> Links recognition library with FULL unicode support.\n> Focused on high quality link patterns detection in plain text.\n\n__[Demo](http://markdown-it.github.io/linkify-it/)__\n\nWhy it's awesome:\n\n- Full unicode support, _with astral characters_!\n- International domains support.\n- Allows rules extension & custom normalizers.\n\n\nInstall\n-------\n\n```bash\nnpm install linkify-it --save\n```\n\nBrowserification is also supported.\n\n\nUsage examples\n--------------\n\n##### Example 1\n\n```js\nvar linkify = require('linkify-it')();\n\n// Reload full tlds list & add unofficial `.onion` domain.\nlinkify\n .tlds(require('tlds')) // Reload with full tlds list\n .tlds('onion', true) // Add unofficial `.onion` domain\n .linkify.add('git:', 'http:') // Add `git:` ptotocol as \"alias\"\n .linkify.add('ftp:', null) // Disable `ftp:` ptotocol\n .set({ fuzzyIP: true }); // Enable IPs in fuzzy links (without schema)\n\nconsole.log(linkify.test('Site github.com!')); // true\n\nconsole.log(linkify.match('Site github.com!')); // [ {\n // schema: \"\",\n // index: 5,\n // lastIndex: 15,\n // raw: \"github.com\",\n // text: \"github.com\",\n // url: \"http://github.com\",\n // } ]\n```\n\n##### Example 2. Add twitter mentions handler\n\n```js\nlinkify.add('@', {\n validate: function (text, pos, self) {\n var tail = text.slice(pos);\n\n if (!self.re.twitter) {\n self.re.twitter = new RegExp(\n '^([a-zA-Z0-9_]){1,15}(?!_)(?=$|' + self.re.src_ZPCc + ')'\n );\n }\n if (self.re.twitter.test(tail)) {\n // Linkifier allows punctuation chars before prefix,\n // but we additionally disable `@` (\"@@mention\" is invalid)\n if (pos >= 2 && tail[pos - 2] === '@') {\n return false;\n }\n return tail.match(self.re.twitter)[0].length;\n }\n return 0;\n },\n normalize: function (match) {\n match.url = 'https://twitter.com/' + match.url.replace(/^@/, '');\n }\n});\n```\n\n\nAPI\n---\n\n__[API documentation](http://markdown-it.github.io/linkify-it/doc)__\n\n### new LinkifyIt(schemas, options)\n\nCreates new linkifier instance with optional additional schemas.\nCan be called without `new` keyword for convenience.\n\nBy default understands:\n\n- `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links\n- \"fuzzy\" links and emails (google.com, foo@bar.com).\n\n`schemas` is an object, where each key/value describes protocol/rule:\n\n- __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`\n for example). `linkify-it` makes sure that prefix is not preceeded with\n alphanumeric char.\n- __value__ - rule to check tail after link prefix\n - _String_ - just alias to existing rule\n - _Object_\n - _validate_ - validator function (should return matched length on success),\n or `RegExp`.\n - _normalize_ - optional function to normalize text & url of matched result\n (for example, for twitter mentions).\n\n`options`:\n\n- __fuzzyLink__ - recognize URL-s without `http(s)://` head. Default `true`.\n- __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts\n like version numbers. Default `false`.\n- __fuzzyEmail__ - recognize emails without `mailto:` prefix. Default `true`.\n- __---__ - set `true` to terminate link with `---` (if it's considered as long dash).\n\n\n### .test(text)\n\nSearches linkifiable pattern and returns `true` on success or `false` on fail.\n\n\n### .pretest(text)\n\nQuick check if link MAY BE can exist. Can be used to optimize more expensive\n`.test()` calls. Return `false` if link can not be found, `true` - if `.test()`\ncall needed to know exactly.\n\n\n### .testSchemaAt(text, name, offset)\n\nSimilar to `.test()` but checks only specific protocol tail exactly at given\nposition. Returns length of found pattern (0 on fail).\n\n\n### .match(text)\n\nReturns `Array` of found link matches or null if nothing found.\n\nEach match has:\n\n- __schema__ - link schema, can be empty for fuzzy links, or `//` for\n protocol-neutral links.\n- __index__ - offset of matched text\n- __lastIndex__ - index of next char after mathch end\n- __raw__ - matched text\n- __text__ - normalized text\n- __url__ - link, generated from matched text\n\n\n### .tlds(list[, keepOld])\n\nLoad (or merge) new tlds list. Those are needed for fuzzy links (without schema)\nto avoid false positives. By default:\n\n- 2-letter root zones are ok.\n- biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф are ok.\n- encoded (`xn--...`) root zones are ok.\n\nIf that's not enougth, you can reload defaults with more detailed zones list.\n\n### .add(schema, definition)\n\nAdd new rule with `schema` prefix. For definition details see constructor\ndescription. To disable existing rule use `.add(name, null)`\n\n\n### .set(options)\n\nOverride default options. Missed properties will not be changed.\n\n\n## License\n\n[MIT](https://github.com/markdown-it/linkify-it/blob/master/LICENSE)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/markdown-it/linkify-it.git" }, "scripts": { "test": "make test" }, "version": "2.0.3" }