{"_id":"url-escape-tag","_rev":"3-b12ad5ce2dedcefc8f0723dcd1bd0cdf","name":"url-escape-tag","description":"A template tag for escaping url parameters based on ES2015 tagged templates.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"url-escape-tag","version":"1.0.0","description":"A template tag for escaping url parameters based on ES2015 tagged templates.","author":{"name":"Rui Marinho","email":"rui.marinho@seegno.com","url":"http://seegno.com"},"license":"MIT","homepage":"https://github.com/seegno/url-escape-tag","bugs":{"url":"https://github.com/seegno/url-escape-tag/issues"},"repository":{"type":"git","url":"https://github.com/seegno/url-escape-tag.git"},"main":"src/index.js","keywords":["encodeURIComponent","es2015","es6","escape","injection","literal","multiline","query","querystring","safe","string","tag","tagged","template"],"options":{"mocha":"--recursive --require should"},"scripts":{"changelog":"github_changelog_generator --no-issues --header-label='# Changelog' --future-release=$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,4ba' -e 'P;D' CHANGELOG.md","lint":"eslint src test && jscs src test","testdocker":"docker-compose run --rm sut","test":"mocha $npm_package_options_mocha","version":"npm run changelog --future-release=$npm_package_version && git add -A CHANGELOG.md"},"devDependencies":{"babel-eslint":"^4.1.8","eslint":"^1.10.3","eslint-config-seegno":"^2.0.0","eslint-plugin-babel":"^3.1.0","jscs":"^2.7.0","jscs-config-seegno":"^1.0.0","mocha":"^2.4.5","pre-commit":"^1.1.2","should":"^8.2.2"},"pre-commit":["lint"],"engines":{"node":">=4"},"gitHead":"6c5c04524a9696b0788ecbe23b9522b66aca7023","_id":"url-escape-tag@1.0.0","_shasum":"561256864c1bb79d2a0e071b16d402061b4d2aca","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"ruimarinho","email":"ruipmarinho@gmail.com"},"dist":{"shasum":"561256864c1bb79d2a0e071b16d402061b4d2aca","tarball":"https://registry.npmjs.org/url-escape-tag/-/url-escape-tag-1.0.0.tgz","integrity":"sha512-nqEkR/p1aezHvG2AsgNBwMZtxcLwJEBoZ771cWQMQ6iVL2bansYBGbyWWzA7Ea26Dc26qzj0w3ZC02I4FA+voA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwWisviVUqftr9rTZqwF3SWKX/svmXQ9nKbVjUz2uRawIgR2DXbejnKlaHTBINyQyh/61BqFaCxJQp2SaosoD0Skw="}]},"maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/url-escape-tag-1.0.0.tgz_1456280041065_0.11596074630506337"}}},"readme":"# url-escape-tag\nA template tag for escaping url parameters based on [ES2015 tagged templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings#Tagged_template_strings).\n\nInternally, this package uses node.js [querystring.escape](https://nodejs.org/api/querystring.html#querystring_querystring_escape), a safer implementation of [encodeURIComponent](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent).\n\n## Status\n[![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url]\n\n## Installation\nInstall the package via `npm`:\n\n```sh\nnpm install url-escape-tag --save\n```\n\n## Usage\n### Arguments\n1. `url` _(string)_: The url with parameters to escape.\n\n### Returns\n_(string)_: The url with parameters escaped.\n\n### Example\n\n```js\nconst esc = require('url-escape-tag');\nconst foo = '../foo';\nconst bar = '+bar';\n\nconsole.log(esc`/${foo}?field1=${bar}`);\n// => /..%2Ffoo?field1=%2Bbar\n```\n\n## Tests\n\n```sh\nnpm test\n```\n\n## Release\n\n```sh\nnpm version [<newversion> | major | minor | patch] -m \"Release %s\"\n```\n\n## License\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/url-escape-tag.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/url-escape-tag\n[travis-image]: https://img.shields.io/travis/seegno/url-escape-tag.svg?style=flat-square\n[travis-url]: https://travis-ci.org/seegno/url-escape-tag\n","maintainers":[{"name":"ruimarinho","email":"ruipmarinho@gmail.com"}],"time":{"modified":"2022-06-28T06:13:16.190Z","created":"2016-02-24T02:14:03.784Z","1.0.0":"2016-02-24T02:14:03.784Z"},"homepage":"https://github.com/seegno/url-escape-tag","keywords":["encodeURIComponent","es2015","es6","escape","injection","literal","multiline","query","querystring","safe","string","tag","tagged","template"],"repository":{"type":"git","url":"https://github.com/seegno/url-escape-tag.git"},"author":{"name":"Rui Marinho","email":"rui.marinho@seegno.com","url":"http://seegno.com"},"bugs":{"url":"https://github.com/seegno/url-escape-tag/issues"},"license":"MIT","readmeFilename":"README.md"}