{"_id":"form-placeholder","_rev":"2-a5d3c2d8505dc9f6af1b777e57ce40c1","name":"form-placeholder","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"form-placeholder","version":"1.0.0","description":"Formats text in a text input field to either conceal some part of it or mske it appear in a certain format","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Adeyemi Adeoye"},"license":"ISC","gitHead":"b191beab9d68bb2c8c2e76e311be8957ffa69cf9","_id":"form-placeholder@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.3","dist":{"integrity":"sha512-VUSzQ80Pq3I7wO91AadrnnnQ9Bt6aNdmoEL6gsYwFu1axF4zPG7VFOIEg0am14IjchM4kRqtwfvEcjaUXrQh8g==","shasum":"eca01ab6cc0fc4211d70ff825a716637870db6bb","tarball":"https://registry.npmjs.org/form-placeholder/-/form-placeholder-1.0.0.tgz","fileCount":5,"unpackedSize":3977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzsK5CRA9TVsSAnZWagAAxWQP/20MmwJXdPYR68hJzOh+\nAQUd1H9pNxuZjwD/CN7ABeC4JvmS2Y0wA6akyDlQvyDOnZm8SHZLBePO3cwG\ntsQtS68PMqn8N/wC59RvxBlr0yA9x5/VKexyZJcG4dk+TJ16ZnMWdJ6ZGLZA\nRrVk259+cvSs86alIpr6z9eHwDIDQy9RnZIwwoik6N+LQodu5I9EZ1QYWEs5\n2xzStvnZnjP5cLnIX2+8aUO9XE+UunUAA5aRRvBrbrzJRTdgfGqlfhf4EZJ4\n5cW3Usfqd/jnzDL00MUIhHkxDCywYx77NOOnhiiU8wRkFTTeOJcwLkiTrQtH\nLZi4WrkgYE/rstx1KFexDrn2VdkiflFacY813QIcw48d1bPgu4BjaD1WSLuA\nZuI6JqdaCWd6eTTTfHLEJIZ36cKGjPKEfbrX6+xEaEfij3KPfWGrjdBxn2K/\nPggYPZ2bpBW2EDh4XjXwse+r3+09CF3tn0sMlQAQPmD4hRnRQFvKLjVy3mag\nGpefI6/vV0VO5bBgp5jxOSG0iwOT6/0qGNvaNZjxpUV8GN2UDgw8IdvTOug6\n8CNosqz6J86FCDJn9/8AhF4SZ/iL8qmzIEYQTd96xj7Ki4+sHIE15gyQejHP\nL1OG01W9moSylH8hBa4kW2AMUDlUuAt0xIi3AW26rbNJpFJjbY/ucxMma7gx\ngqm0\r\n=F2zH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBs6PFzyxf1IIXDzKKdGLasaq3EM6AltOJvPwlkJ0JxNAiEAva19GZUDTTzuSDv6QV9yLxHAlNFZfV6ojKA4PDjfZU4="}]},"_npmUser":{"name":"yemi-adeoye","email":"adeyemi_adeoye@hotmail.com"},"directories":{},"maintainers":[{"name":"yemi-adeoye","email":"adeyemi_adeoye@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-placeholder_1.0.0_1640940217124_0.9219524722385386"},"_hasShrinkwrap":false},"1.0.1":{"name":"form-placeholder","version":"1.0.1","description":"Formats text in a text input field to either conceal some part of it or mske it appear in a certain format","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Adeyemi Adeoye"},"license":"MIT","gitHead":"633af7c955b4dc58d9dce3afb87f4a784a89b396","_id":"form-placeholder@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.3","dist":{"integrity":"sha512-txxh0RF71gfOq8ZZy3kRinT6x8Jk8gnMkLRyr6XvgPDAxo/fFK0uT4Z0JS5uSUSviDeN9ykQh4L8Femaal/how==","shasum":"06e6d2cc7b8f9a75954d387ac88715e0fe0d3a8c","tarball":"https://registry.npmjs.org/form-placeholder/-/form-placeholder-1.0.1.tgz","fileCount":5,"unpackedSize":6752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhztVaCRA9TVsSAnZWagAA4tUP/iRMp45zGUeRV3P9GEzj\npDEd8nzs8lVDS1vZWFhcXIp8tI1mn+pMG4w0bmdbGEjx9Z7YoYJJwUPFkFdz\n4yIJ3/4260IC952zB14XIPyqoopptTY/BSlPHRrA3tjuM77fJ/NIMPcG0tRs\ntNwVen0vI6XUDjrQynraLBgl2I8HPhT8tslbwiCH9ILn6Iq61kCTMTsoVmu8\nevStQWMNWL7c/cYK0w1RzJu3T5iSZNAoWLP6nsfZDwynQ9u9LDxpanLZkfZD\n3D8Qbm73MsPbJamB+GLgPjYTgWL3bzBv3gANKCoOSOpavoN5q7KNc6flubJX\nDGMbmFrO0vlF1PL1Pyesl/1kKKZnhJd9NaN0ZZuRodE5KnU/AJjVMcqj3Uwt\nWy+s3CBifS2EBhIoSjHKvScbUKQ/XU5WlmFi43R/UO9wZU53TdfiOqH6BBc/\nVvg7iZkq+YS36PQZAbQ0hAjPcMUfTVzhYV4gYm7xXf34qUN9WUWL+uE0SBTW\nnugAr3GCD4Yc/JeLtdjl4yv8G/reqO+S6kjJUwf42TuxYLu/9tAVA9JtkOlG\nSH8dpyoL0+4ZAKFGUzNjr1LtLXFSR/jC5F3Jk78y/6PRHbHGiL8fZlcyo+nB\nvEYrneaZwXt2JCyVVvUGb/olpyx26IFCGwkqUgYydzxX/6zNJevQUJl8N24A\ntdgQ\r\n=zJhi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsoMkk1L8DRj224ZYVun9Yn4WfNjubANOGBx39xpZIAwIgGzdVpkAuwA6xVOq6UwnUuNc6KSrcbPGR38z7n/aY2Ig="}]},"_npmUser":{"name":"yemi-adeoye","email":"adeyemi_adeoye@hotmail.com"},"directories":{},"maintainers":[{"name":"yemi-adeoye","email":"adeyemi_adeoye@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-placeholder_1.0.1_1640944986525_0.7191596625166332"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-31T08:43:37.122Z","1.0.0":"2021-12-31T08:43:37.268Z","modified":"2022-05-02T19:16:32.667Z","1.0.1":"2021-12-31T10:03:06.660Z"},"maintainers":[{"name":"yemi-adeoye","email":"adeyemi_adeoye@hotmail.com"}],"description":"Formats text in a text input field to either conceal some part of it or mske it appear in a certain format","author":{"name":"Adeyemi Adeoye"},"license":"MIT","readme":"<h1 align=\"center\">formPlaceholder</h1>\n\n<p align=\"center\">Helps create strings that have some part concealed or formatted in a given fashion</p>\n\n## Links\n\n- [Repo](https://github.com/yemi-adeoye/formPlaceholder 'Badbank FullStack Repo')\n\n- [Live](https://registry.npmjs.org/form-placeholder 'Live View')\n\n## Installation Guidelines\n\nTo install from the command line run \"npm install form-placeholder\"\n\n## Usage\n\n```Javascript\nconst { formPlaceholder, presets } = require('./index.js');\n\nconsole.log(formPlaceholder('7013067099', presets.phone));\n\n/* formPlaceholder takes two arguments. First thge string you want formatted and the second\n* an object that contains the settings that determines how the string is formatted.\nA valid srecond parameter is one that contains one or more keys from the following object\n*/\n\n{\n  format: true, // the text will be formatted if true\n  replace: true, // text will be replaced from start to stop if specified\n  separator: '-', // character to be used as separator\n  replacer: 'X', // character to be used to replace part of string\n  separatorPos: [3, 5], // separator positions: in this case will appearm after the third and fifth character\n  replaceStart: 1, // character from which replacing will start; first character here\n  replaceStop: 6, // character where replacing will stop; sixth character here. Note that you count the     separators too for the positioning of the replacer\n}\n\n### Example 1\nconsole.log(formPlaceholder('701306709'));\n\n[outputs] XXX-XX-6709\n\n### Example 2\nconsole.log(formPlaceholder('1208', presets.ccv));\n\n[outputs] 12/08\n\n### Example 3\nconsole.log(formPlaceholder('7013067098', presets.phone));\n\n[outputs] 701 306 7098\n\n### Example 4\n\nlet options = {\n  format: true, // the text will be formatted if true\n  replace: true, // text will be replaced from start to stop if specified\n  separator: '-', // character to be used as separator\n  replacer: 'X', // character to be used to replace part of string\n  separatorPos: [3, 6], // separator positions: in this case will appearm after the third and fifth character\n  replaceStart: 3, // character from which replacing will start; first character here\n  replaceStop: 4, // character where replacing will stop; sixth character here. Note that you count the     separators too for the positioning of the replacer\n}\n\nconsole.log(formPlaceholder('7013067098', options));\n\n[outputs] 17-XX-1986\n```\n\n## Author\n\n**Yemi Adeoye**\n\n- [Profile](https://github.com/yemi-adeoye 'Yemi Adeoye')\n- [Email](mailto:adeyemi_adeoye@hotmail.com?subject=Hi 'Hi!')\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}