{"versions":{"0.0.1":{"name":"gasperoid-docxtemplater-link-module","version":"0.0.1","description":"This is a FORK of Hyperlink module for docxtemplater","main":"index.js","scripts":{"test":"mocha"},"keywords":["docxtemplater","hyperlink","microsoft word","generation","docx"],"repository":{"type":"git","url":"git+https://github.com/sujith3g/docxtemplater-link-module.git"},"author":{"name":"sujith","email":"sujith3g(at)gmail(dot)com","url":"at"},"license":"MIT","dependencies":{"xmldom":"0.1.22"},"devDependencies":{"chai":"^1.10.0","docxtemplater":"^2.1.1","gulp-browserify":"^0.5.0","jszip":"^2.4.0"},"bugs":{"url":"https://github.com/sujith3g/docxtemplater-link-module/issues"},"homepage":"https://github.com/sujith3g/docxtemplater-link-module#readme","directories":{"example":"examples","test":"test"},"gitHead":"4fb44cfcee4a439b65ae41e5863d1e2c7280e9af","_id":"gasperoid-docxtemplater-link-module@0.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3PSq7aK94FEjWc7uzqYOtYfXyvLNciuV10jwY/gUkUs5GY65I14HACOg/dJ5mzkikLiIQvZgKvlszYPz9jxHfg==","shasum":"f5f7d0daa1908c19a53849b444146e5117dae58e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gasperoid-docxtemplater-link-module/-/gasperoid-docxtemplater-link-module-0.0.1.tgz","fileCount":18,"unpackedSize":697345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZiDHCRA9TVsSAnZWagAAn/IP/A3UtJHtrpzDEprZKuln\nEznKyxrPPpOciL9dnVReWgjka1rxGdep7lsKBhLquOLlfrhBFtYxCs2NQeIx\nI2vUrhoCshQe/kI39hud9bf6h3in/RBWw8gPq8ZDItqkp30sxTlMUTPJG6xk\nP78GvS1NuBdxAceMGEOuavIypzBdbMzAuon3D+gm2I30ok6uxFad5gBZrd5e\n0RNMFiUMQpm38HDRPe/+uMA1o7kewsSjqngXkTZa3eHJYQoH/xml8sLJM+jt\nLGMSZ3Go8sahY3mkxn3otZ97EKtgyYW2l0UjLoCpDPOXBI6yfSrrzap80uby\ndcVDwDY0Dkl8h8HZ6r6JOloYPeYkQduGyCNik1eqWZUlfl6JnqEhnAl38/H4\n7gSFN/6zCpWfV8YjBUmJs8BN9wWTRHIX4rwIwAT2ksAfg9+Zu65/JaRyWd4W\nofFMN9rj2DvMr3oINHIKoXcHwwoj40W9/aGVHmtAB+BTGlaeCwkl0fj8Ji8J\nNvpJkaHOQ86sp6Wp0/GwLq4uT3OK4Dksj+aDWNmChdBPrJJP8I3mbTeu9PyC\nMZKC2IChkhE/iqJmm1+BZEYexn/JKltUGCa3EtFSXxASDQMz5rJGq1Felcpy\nJGL7nYHuDEyfh5XS6wsAnelf4BUUZ/KY2NgUDquFWxV49EMwx1PuLM3nNC3o\nGDW7\r\n=4Sza\r\n-----END PGP SIGNATURE-----\r\n","size":228831},"maintainers":[{"name":"anonymous","email":"gasper.mike28@gmail.com"}],"_npmUser":{"name":"anonymous","email":"gasper.mike28@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gasperoid-docxtemplater-link-module_0.0.1_1583751367421_0.3996122356969689"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T16:57:55.345Z","contributors":[]},"0.0.2":{"name":"gasperoid-docxtemplater-link-module","version":"0.0.2","description":"This is a FORK of Hyperlink module for docxtemplater","main":"index.js","scripts":{"test":"mocha"},"keywords":["docxtemplater","hyperlink","microsoft word","generation","docx"],"repository":{"type":"git","url":"git+https://github.com/sujith3g/docxtemplater-link-module.git"},"author":{"name":"sujith","email":"sujith3g(at)gmail(dot)com","url":"at"},"license":"MIT","dependencies":{"xmldom":"0.1.22"},"devDependencies":{"chai":"^1.10.0","docxtemplater":"^2.1.1","gulp-browserify":"^0.5.0","jszip":"^2.4.0"},"bugs":{"url":"https://github.com/sujith3g/docxtemplater-link-module/issues"},"homepage":"https://github.com/sujith3g/docxtemplater-link-module#readme","directories":{"example":"examples","test":"test"},"gitHead":"f274ae57417e51be04b40ee05958e350f3a8d2c5","_id":"gasperoid-docxtemplater-link-module@0.0.2","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-WXEQXMe5gZU7hSQ7JkuElrVa5BR3jr11x0yLeOIgV5TWJ8PPewAnk5+ar5Ar0pGulj+ltPqPEEIKs6XrmIh14w==","shasum":"64152dda94686abb2efda3ee35e9b1cb39188104","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gasperoid-docxtemplater-link-module/-/gasperoid-docxtemplater-link-module-0.0.2.tgz","fileCount":18,"unpackedSize":697345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZmDNCRA9TVsSAnZWagAA62wP/2M7ufNy7IfzZcRx6lTc\n59T7WHzdTHdqryZnzBQkfBXtcOsbym8P54a3DYlvqPjtJFlZkHXCE9uc1oMh\nUb+DMtGvXEv8COt15ePNVpZAhpgdrNsRXZpvKh52Hv3UfsxP7Es3JFEmFHI2\nI78n5AcsAGVwaerlW/MtyM1T68GUoL/68284ul/0rLFrVwRBjh4W3OE8oJo0\npkZqCx3AaeN8GcrDQK+FYAlBscq7d6TaJN0szkXyAggHBi/0UEkqLdwTlew4\nxdu6TrIKRsJNYSavMGRm2jjo2OVtuNZlrVsCRDYIuDf6mV40cAaSljUCIyfX\nx/wNv/8ilZjaVPxygIEbXYMot+Rvrxy61YeRzf9ZpuVrewafkCvA5b8KRAq2\ndyEokoMaWjyH2PQ+JhFn4xO/uO3DYrvlAJTZLYXITsZ3IqrAnGWHtQfjxVV/\nGFsnep1nggAjqedhJMTF0ZjRtb2ho8PYZxKEH20tGZKZGJzClAXeMMvmoiza\nNncQAuMVfBonLMswve5MVQCw3qusAoaNZBUEefcvCSfZkCoiwCip2kX1LsMN\nJuaErHGlzpsvjdFXkHFP9RbOE04ubc3nlAnPM1Clb7FyozCjxjG3TlexcNCq\nELU4HcEA6wbIBGSCJWYm2UJt/DtgPRhTp0mugAKjdibV9/VjfCcPNHpz+b6M\nCY56\r\n=Wybh\r\n-----END PGP SIGNATURE-----\r\n","size":228831},"maintainers":[{"name":"anonymous","email":"gasper.mike28@gmail.com"}],"_npmUser":{"name":"anonymous","email":"gasper.mike28@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gasperoid-docxtemplater-link-module_0.0.2_1583767756883_0.527185795008694"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T16:57:57.340Z","contributors":[]}},"dist-tags":{"latest":"0.0.2"},"name":"gasperoid-docxtemplater-link-module","time":{"created":"2022-01-27T19:40:11.699Z","modified":"2022-01-27T19:40:11.699Z","0.0.1":"2020-03-09T10:56:07.684Z","0.0.2":"2020-03-09T15:29:17.194Z"},"readme":"# docxtemplater-link-module\nThis module is updated to support docxtemplater version 3+\nHyperlink module for [docxtemplater](https://github.com/open-xml-templating/docxtemplater)\n\n[![Download count](https://img.shields.io/npm/dt/docxtemplater-link-module.svg?style=flat)](https://www.npmjs.org/package/docxtemplater-link-module)\n[![ghit.me](https://ghit.me/badge.svg?repo=sujith3g/docxtemplater-link-module)](https://ghit.me/repo/sujith3g/docxtemplater-link-module)\n[![Build Status](https://travis-ci.org/sujith3g/docxtemplater-link-module.svg?branch=master)](https://travis-ci.org/sujith3g/docxtemplater-link-module)\n\n## Installation:\nYou will need docxtemplater v3+: `npm install docxtemplater`\n\nInstall this module: `npm install docxtemplater-link-module`\n\n## Usage: Text and URL\n\nThe example below will displays the following hyperlink:\n> Lorem ipsum [dolor sit](http://google.com) amet.\n\nYour docx should contain the text: `Lorem ipsum {^link} amet.`.\n\n```js\nvar fs = require('fs');\nvar content = fs.readFileSync(__dirname + \"/example-href.docx\", \"binary\");\nvar DocxGen = require('docxtemplater');\nvar LinkModule = require('docxtemplater-link-module');\nvar linkModule = new LinkModule();\n \nvar docx = new DocxGen()\n\t.attachModule(linkModule)\n\t.load(content)\n\t.setData({\n\t\tlink : {\n\t\t\ttext : \"dolor sit\",\n\t\t\turl : \"http://google.com\"\n\t\t}\n\t}).\n\trender();\nvar buffer = docx\n\t.getZip()\n\t.generate({type:\"nodebuffer\"});\nfs.writeFile(\"test.docx\", buffer);\n```\n\n## Usage: URL only\n\nThe example below will displays the following hyperlink:\n> Lorem ipsum [http://google.com](http://google.com) amet.\n\nYour docx should contain the text: `Lorem ipsum {^link} amet.`.\n\n```js\nvar fs = require('fs');\nvar content = fs.readFileSync(__dirname + \"/example-href.docx\", \"binary\");\nvar DocxGen = require('docxtemplater');\nvar LinkModule = require('docxtemplater-link-module');\nvar linkModule = new LinkModule();\n \nvar docx = new DocxGen()\n\t.attachModule(linkModule)\n\t.load(content)\n\t.setData({\n\t\tlink : \"http://google.com\"\n\t}).\n\trender();\nvar buffer = docx\n\t.getZip()\n\t.generate({type:\"nodebuffer\"});\nfs.writeFile(\"test.docx\", buffer);\n```\n\n## Usage: Email address support\n\nThe example below will displays the following hyperlink:\n> Lorem ipsum [john.smith@example.com](mailto:john.smith@example.com) amet.\n\nYour docx should contain the text: `Lorem ipsum {^link} amet.`.\n\n```js\nvar fs = require('fs');\nvar content = fs.readFileSync(__dirname + \"/example-mailto.docx\", \"binary\");\nvar DocxGen = require('docxtemplater');\nvar LinkModule = require('docxtemplater-link-module');\nvar linkModule = new LinkModule();\n \nvar docx = new DocxGen()\n\t.attachModule(linkModule)\n\t.load(content)\n\t.setData({\n\t\tlink : \"john.smith@example.com\"\n\t}).\n\trender();\nvar buffer = docx\n\t.getZip()\n\t.generate({type:\"nodebuffer\"});\nfs.writeFile(\"test.docx\", buffer);\n```\n\n## Usage: Text and URL in powerpoint pptx\n\nThe example below will displays the following hyperlink powerpoint:\n> Lorem ipsum [dolor sit](http://google.com) amet.\n\nYour pptx should contain the text: `Lorem ipsum {^link} amet.`.\n\n```js\nvar fs = require('fs');\nvar content = fs.readFileSync(__dirname + \"/example-href.pptx\", \"binary\");\nvar DocxGen = require('docxtemplater');\nvar LinkModule = require('docxtemplater-link-module');\nvar linkModule = new LinkModule();\n \nvar docx = new DocxGen()\n\t.attachModule(linkModule)\n\t.setOptions({ fileType : \"pptx\" })\n\t.load(content)\n\t.setData({\n\t\tlink : {\n\t\t\ttext : \"dolor sit\",\n\t\t\turl : \"http://google.com\"\n\t\t}\n\t}).\n\trender();\nvar buffer = docx\n\t.getZip()\n\t.generate({type:\"nodebuffer\"});\nfs.writeFile(\"output-href.pptx\", buffer);\n```\n\n## Usage: Email address support in powerpoint\n\nThe example below will displays the following hyperlink:\n> Lorem ipsum [john.smith@example.com](mailto:john.smith@example.com) amet.\n\nYour pptx should contain the text: `Lorem ipsum {^link} amet.`.\n\n```js\nvar fs = require('fs');\nvar content = fs.readFileSync(__dirname + \"/example-mailto.pptx\", \"binary\");\nvar DocxGen = require('docxtemplater');\nvar LinkModule = require('docxtemplater-link-module');\nvar linkModule = new LinkModule();\n \nvar docx = new DocxGen()\n\t.attachModule(linkModule)\n\t.setOptions({ fileType : \"pptx\" })\n\t.load(content)\n\t.setData({\n\t\tlink : \"john.smith@example.com\"\n\t}).\n\trender();\nvar buffer = docx\n\t.getZip()\n\t.generate({type:\"nodebuffer\"});\nfs.writeFile(\"output-mailto.pptx\", buffer);\n```\n\n\n## Testing \n\nYou can test that everything works fine using the command `mocha`. This will also create 2 docx files under the root directory that you can open to check if the docx are correct","users":{}}