{"_id":"vue-linkify","_rev":"3-20b99b8fd2dc4bef5d2c14454d2d028c","name":"vue-linkify","description":"A simple Vue directive to turn URL's and emails into clickable links","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"vue-linkify","version":"1.0.1","description":"A simple Vue directive to turn URL's and emails into clickable links","main":"dist/vue-linkify.min.js","scripts":{"lint":"eslint index.js","build":"eslint index.js && BABEL_ENV=production && babel index.js -o ./dist/vue-linkify.min.js","test":"npm build && karma start test/unit/karma.conf.js --single-run"},"keywords":["vue","vuejs","component","directive","url","urlify","link","linkify"],"author":{"name":"Phan An","email":"me@phanan.net","url":"http://phanan.net"},"license":"MIT","dependencies":{"linkifyjs":"^2.1.3","vue":"^2.1.6"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.0.0","babel-loader":"^6.2.9","babel-preset-babili":"^0.0.9","babel-preset-es2015":"^6.18.0","chai":"^3.5.0","eslint":"^3.12.1","eslint-config-vue":"^2.0.1","eslint-plugin-vue":"^1.0.0","karma":"^1.3.0","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.2","karma-sinon-chai":"^1.2.4","karma-webpack":"^1.8.0","mocha":"^3.2.0","phantomjs-prebuilt":"^2.1.14","sinon":"^1.17.6","sinon-chai":"^2.8.0","webpack":"^1.14.0"},"gitHead":"690ef8750c0a12d49ec6123ecb4ea50f522ebc94","_id":"vue-linkify@1.0.1","_shasum":"2c62181978ef1c65d874d9b156479531d6630cb3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"phanan","email":"me@phanan.net"},"dist":{"shasum":"2c62181978ef1c65d874d9b156479531d6630cb3","tarball":"https://registry.npmjs.org/vue-linkify/-/vue-linkify-1.0.1.tgz","integrity":"sha512-ChjL553fOmV2cwLEcENPj9+vxKEDh3ilAcoylABCUiZDmVkkqt5pkEmnZF4fHzJ4a6pzZje1KTGI8dsdlFfLNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPgDBnt9HdMvIbaTPD9AD/MMIACOnXqAwFExKP5gqOTAiBg6V4fD57+Ga6bRVUjdu7Kxp6Ckqmot1mAQO1dc0NtYw=="}]},"maintainers":[{"name":"phanan","email":"me@phanan.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vue-linkify-1.0.1.tgz_1481792448616_0.858748207334429"}}},"readme":"# vue-linkify\n\n> A simple Vue directive to turn URL's and emails into clickable links. Based on SoapBox's [Linkify](https://github.com/SoapBox/linkifyjs).\n\n## Install\n\nThis directive can be installed as a module:\n\n``` bash\n$ npm install vue-linkify\n```\n\nor, if you're not in a module environment, just include it as a `<script>`.\n\n## Basic Usage\n\nIn a browser environment, you should now have a `v-linkified` directive set up for free. If you're in a module environment, just `import` and register it as you please:\n\n``` js\nimport linkify from 'vue-linkify'\n\nVue.directive('linkified', linkify)\n```\n\nAnd then you use it away:\n\n``` html\n<template>\n  <div id=\"app\">\n    <div v-html=\"raw\" v-linkified />\n  </div>\n</template>\n<script>\nexport default {\n  data () {\n    return {\n      raw: 'Hello from vuejs.org'\n    }\n  }\n}\n</script>\n```\n\nThe above snippet will yield:\n\n``` html\nHello from <a href=\"http://vuejs.org\" class=\"linkified\" target=\"_blank\">vuejs.org</a>\n```\n\n## ~~Advanced~~ Slightly Less Basic Usage\n\nYou can also pass an `options` argument, which takes an `Object`, into the directive to control its behavior. For example, modifying the above template into something like this:\n\n``` html\n<template>\n  <div id=\"app\">\n    <div v-html=\"raw\" v-linkified:options=\"{ className: 'foo' }\" />\n  </div>\n</template>\n```\n\nwill yield a slightly different HTML:\n\n``` html\nHello from <a href=\"http://vuejs.org\" class=\"foo\" target=\"_blank\">vuejs.org</a>\n```\n\nA list of available options is available [here](http://soapbox.github.io/linkifyjs/docs/options.html).\n\n## License\n\nMIT &copy; [Phan An](http://phanan.net)\n","maintainers":[{"name":"phanan","email":"me@phanan.net"}],"time":{"modified":"2022-06-28T19:47:51.848Z","created":"2016-12-15T09:00:50.453Z","1.0.1":"2016-12-15T09:00:50.453Z"},"keywords":["vue","vuejs","component","directive","url","urlify","link","linkify"],"author":{"name":"Phan An","email":"me@phanan.net","url":"http://phanan.net"},"license":"MIT","readmeFilename":"README.md"}