{"_id":"url-mask","_rev":"6-0048dedfbf091d0b4c0f0a75479f7742","name":"url-mask","description":"Utility for masking url userinfo","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"url-mask","version":"1.0.1","description":"Utility for masking url userinfo","main":"index.js","scripts":{"lint":"eslint .","test":"mocha 'test/**/*.test.js'","cover":"istanbul cover _mocha 'test/**/*.test.js'"},"repository":{"type":"git","url":"git+https://github.com/tanzim/url-mask.git"},"keywords":["url","mask","password","secret","utility","masking"],"author":{"name":"Tanzim Husain"},"license":"MIT","bugs":{"url":"https://github.com/tanzim/url-mask/issues"},"homepage":"https://github.com/tanzim/url-mask#readme","dependencies":{"debug":"^2.2.0","lodash.merge":"^4.4.0"},"devDependencies":{"babel-eslint":"^6.0.5","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.9.2","eslint-plugin-jsx-a11y":"^1.5.3","eslint-plugin-react":"^5.2.2","expect.js":"^0.3.1","istanbul":"^0.4.4","mocha":"^2.5.3","precommit-hook":"^3.0.0"},"pre-commit":["lint","test"],"gitHead":"afbf282ca18a0b891115a011ef4ca3ff46369002","_id":"url-mask@1.0.1","_shasum":"536cbac4038cb26381b3759284a9b426de01df79","_from":".","_npmVersion":"3.9.5","_nodeVersion":"4.4.5","_npmUser":{"name":"tanzim","email":"t@tanzim.co.uk"},"dist":{"shasum":"536cbac4038cb26381b3759284a9b426de01df79","tarball":"https://registry.npmjs.org/url-mask/-/url-mask-1.0.1.tgz","integrity":"sha512-3xtyloVighBZ3bsD3SMBmKEvozT+0arpZCfW59lQdOKfUMDAqEGb3Ln9a7D2o3oIRk26rPvjcYX6WAR+YvM/OQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBZuVxmWudSgSzBVwS2Vj6vXle4xrEuqPGDs7X8VuC1wIgSrRez9vdUHPAEl8YuCOLYEx1/UfoZSfIdUjgitjLeW0="}]},"maintainers":[{"name":"tanzim","email":"t@tanzim.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/url-mask-1.0.1.tgz_1468328820992_0.5040955524891615"}},"1.0.2":{"name":"url-mask","version":"1.0.2","description":"Utility for masking url userinfo","main":"index.js","scripts":{"lint":"eslint .","test":"mocha 'test/**/*.test.js'","cover":"istanbul cover _mocha 'test/**/*.test.js'"},"repository":{"type":"git","url":"git+https://github.com/tanzim/url-mask.git"},"keywords":["url","mask","password","secret","utility","masking"],"author":{"name":"Tanzim Husain"},"license":"MIT","bugs":{"url":"https://github.com/tanzim/url-mask/issues"},"homepage":"https://github.com/tanzim/url-mask#readme","dependencies":{"debug":"^2.2.0","lodash.merge":"^4.4.0"},"devDependencies":{"babel-eslint":"^6.0.5","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.9.2","eslint-plugin-jsx-a11y":"^1.5.3","eslint-plugin-react":"^5.2.2","expect.js":"^0.3.1","istanbul":"^0.4.4","mocha":"^2.5.3","precommit-hook":"^3.0.0"},"pre-commit":["lint","test"],"gitHead":"144a05a7e0d40d170b0d72b90db42f4315c76e73","_id":"url-mask@1.0.2","_shasum":"5bc152fbf615db75af62dce4e98679189a224cd6","_from":".","_npmVersion":"3.9.5","_nodeVersion":"4.4.5","_npmUser":{"name":"tanzim","email":"t@tanzim.co.uk"},"dist":{"shasum":"5bc152fbf615db75af62dce4e98679189a224cd6","tarball":"https://registry.npmjs.org/url-mask/-/url-mask-1.0.2.tgz","integrity":"sha512-8lGugXMZJ/bglhrxcDxrC7yPOWVjqFtkDYoePGuUDEyoVpHsTswqNNte94A5/Kkv9+p29sJ4VNolvd8aucpbbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxMTqOE5vCG5SjE/ZZRpJgPEkGW0iAIpOaDQwWIh7FDAIgT3nEY9i0z5iPOnm7dApQbcZhxQ2lQj1Qb0pHk6lrPDU="}]},"maintainers":[{"name":"tanzim","email":"t@tanzim.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/url-mask-1.0.2.tgz_1468328987272_0.7587043517269194"}},"1.0.3":{"name":"url-mask","version":"1.0.3","description":"Utility for masking url userinfo","main":"index.js","scripts":{"lint":"eslint .","test":"mocha 'test/**/*.test.js'","cover":"istanbul cover _mocha 'test/**/*.test.js'"},"repository":{"type":"git","url":"git+https://github.com/tanzim/url-mask.git"},"keywords":["url","mask","password","secret","utility","masking"],"author":{"name":"Tanzim Husain"},"license":"MIT","bugs":{"url":"https://github.com/tanzim/url-mask/issues"},"homepage":"https://github.com/tanzim/url-mask#readme","dependencies":{"debug":"^2.2.0","lodash.merge":"^4.4.0"},"devDependencies":{"babel-eslint":"^6.0.5","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.9.2","eslint-plugin-jsx-a11y":"^1.5.3","eslint-plugin-react":"^5.2.2","expect.js":"^0.3.1","istanbul":"^0.4.4","mocha":"^2.5.3","precommit-hook":"^3.0.0"},"pre-commit":["lint","test"],"engines":{"node":">= 4.0.0"},"gitHead":"0c2deb19018e389272fc81f47e6b152735d47260","_id":"url-mask@1.0.3","_shasum":"d1ea1f614111e15731da1578f49075e20b3b4ae6","_from":".","_npmVersion":"3.9.5","_nodeVersion":"4.4.5","_npmUser":{"name":"tanzim","email":"t@tanzim.co.uk"},"dist":{"shasum":"d1ea1f614111e15731da1578f49075e20b3b4ae6","tarball":"https://registry.npmjs.org/url-mask/-/url-mask-1.0.3.tgz","integrity":"sha512-T3hfz2GhKdP6wZi9GXhGaqSlO5NvLcKJeLmIAN0G3/Twlp5s6/n42Nd9C2wrZnywhX3eTr+coCLoXU8Vco+ZHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTh3jU0EMAD5eAwWDBmlvFmnX7yBaThMAZrx8IqJrHoQIhAIU4T+iCDRS3KuAYw4JfPT6UTDeYUDZ2M/wu9mz5nNKQ"}]},"maintainers":[{"name":"tanzim","email":"t@tanzim.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/url-mask-1.0.3.tgz_1468329554183_0.715689693344757"}},"1.0.5":{"name":"url-mask","version":"1.0.5","description":"Utility for masking url userinfo","main":"index.js","scripts":{"lint":"eslint .","test":"mocha 'test/**/*.test.js'","cover":"istanbul cover _mocha 'test/**/*.test.js'","coveralls":"istanbul cover _mocha 'test/**/*.test.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/tanzim/url-mask.git"},"keywords":["url","mask","password","secret","utility","masking"],"author":{"name":"Tanzim Husain"},"license":"MIT","bugs":{"url":"https://github.com/tanzim/url-mask/issues"},"homepage":"https://github.com/tanzim/url-mask#readme","dependencies":{"debug":"^2.2.0","lodash.merge":"^4.4.0"},"devDependencies":{"babel-eslint":"^6.0.5","coveralls":"^2.11.11","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.9.2","eslint-plugin-jsx-a11y":"^1.5.3","eslint-plugin-react":"^5.2.2","expect.js":"^0.3.1","istanbul":"^0.4.4","mocha":"^2.5.3","mocha-lcov-reporter":"^1.2.0","precommit-hook":"^3.0.0"},"pre-commit":["lint","test"],"engines":{"node":">= 4.0.0"},"gitHead":"f26859bdfb68926c1d2903522c8a438a788d233a","_id":"url-mask@1.0.5","_shasum":"2c46a1d34182184180a2a9f2787f76dbd4915eb7","_from":".","_npmVersion":"3.9.5","_nodeVersion":"4.4.5","_npmUser":{"name":"tanzim","email":"t@tanzim.co.uk"},"dist":{"shasum":"2c46a1d34182184180a2a9f2787f76dbd4915eb7","tarball":"https://registry.npmjs.org/url-mask/-/url-mask-1.0.5.tgz","integrity":"sha512-xgU8Nh5u/qrqWs+ehNM8sNtunU7RwR0R1kXS0MaFL4qm5I21iUJP4co59i/OqOHCsIG/WBQhG2RZPCyscO/Krw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGH1M3poghUx0vJR49PYTCVmAiLkA+7/dVzINAwoMrcJAiEAwLrB8WR3BamgCw/uVFr4eMPzH+Bu4SbitwcfewRqhLY="}]},"maintainers":[{"name":"tanzim","email":"t@tanzim.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/url-mask-1.0.5.tgz_1469109963152_0.6222257916815579"}}},"readme":"# url-mask\nUtility for masking url userinfo\n\n[![npm version](https://badge.fury.io/js/url-mask.svg)](https://badge.fury.io/js/url-mask)\n[![Dependencies](https://david-dm.org/tanzim/url-mask.svg)](https://github.com/tanzim/url-mask)\n[![Build Status](https://travis-ci.org/tanzim/url-mask.svg?branch=master)](https://travis-ci.org/tanzim/url-mask)\n[![Coverage Status](https://coveralls.io/repos/github/tanzim/url-mask/badge.svg?branch=master)](https://coveralls.io/github/tanzim/url-mask?branch=master)\n\n## Getting Started\n```\n$ npm install url-mask\n```\n\n## Usage\n```javascript\nconst assert = require('assert');\nconst urlmask = require('url-mask');\nconst url = 'http://user:secret@github.com/';\n\n//\n// By default both username and password are masked with *\n//\nlet masked = urlmask(url);\nassert.equal('http://*****:*****@github.com/', masked);\nconsole.log(`masked url using defaults: ${masked}`);\n\n//\n// Additional options can be specified not to mask the username\n// or use a different masking character\n//\nmasked = urlmask(url, { maskUsername: false });\nassert.equal('http://user:*****@github.com/', masked);\nconsole.log(`masked url overriding maskUsername option: ${masked}`);\n\nmasked = urlmask(url, { maskCharacter: '-' });\nassert.equal('http://-----:-----@github.com/', masked);\nconsole.log(`masked url overriding maskCharacter option: ${masked}`);\n```\n\n## Notes\nThe mask is always 5 characters long, irrespective of the length of the userinfo (username/password) fields\n  \n","maintainers":[{"name":"tanzim","email":"t@tanzim.co.uk"}],"time":{"modified":"2022-06-28T06:15:52.256Z","created":"2016-07-12T13:07:03.394Z","1.0.1":"2016-07-12T13:07:03.394Z","1.0.2":"2016-07-12T13:09:49.061Z","1.0.3":"2016-07-12T13:19:15.955Z","1.0.5":"2016-07-21T14:06:04.819Z"},"homepage":"https://github.com/tanzim/url-mask#readme","keywords":["url","mask","password","secret","utility","masking"],"repository":{"type":"git","url":"git+https://github.com/tanzim/url-mask.git"},"author":{"name":"Tanzim Husain"},"bugs":{"url":"https://github.com/tanzim/url-mask/issues"},"license":"MIT","readmeFilename":"README.md"}