{"id":27521203,"url":"https://github.com/cherouvim/hide-some-words","last_synced_at":"2026-05-10T16:07:23.664Z","repository":{"id":57264007,"uuid":"183576230","full_name":"cherouvim/hide-some-words","owner":"cherouvim","description":"Hides some words from a blob of text","archived":false,"fork":false,"pushed_at":"2019-05-01T19:38:44.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:13:48.664Z","etag":null,"topics":["hacktoberfest","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cherouvim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-26T07:04:57.000Z","updated_at":"2022-10-04T04:16:45.000Z","dependencies_parsed_at":"2022-08-25T02:51:41.515Z","dependency_job_id":null,"html_url":"https://github.com/cherouvim/hide-some-words","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fhide-some-words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fhide-some-words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fhide-some-words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fhide-some-words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cherouvim","download_url":"https://codeload.github.com/cherouvim/hide-some-words/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248808827,"owners_count":21164893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","javascript"],"created_at":"2025-04-18T07:59:43.301Z","updated_at":"2026-05-10T16:07:18.631Z","avatar_url":"https://github.com/cherouvim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hide-some-words\n[![npm version](https://img.shields.io/npm/v/hide-some-words.svg?color=0c0)](https://www.npmjs.com/package/hide-some-words)\n[![build size](https://badgen.net/bundlephobia/minzip/hide-some-words?color=0c0)](https://bundlephobia.com/result?p=hide-some-words)\n[![travis](https://img.shields.io/travis/cherouvim/hide-some-words.svg?color=0c0)](https://travis-ci.org/cherouvim/hide-some-words)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?color=0c0)](http://makeapullrequest.com)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?color=0c0)](https://github.com/prettier/prettier)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?color=0c0)](https://opensource.org/licenses/MIT)\n\nHides some words from a blob of text. For input `foo bar test example` it may return `foo bar ___ example`.\n\n## Usage\n```javascript\nconst hideSomeWords = require(\"hide-some-words\");\n\nconst text = \n`Lorem ipsum dolor sit amet, consectetur adipiscing elit.Proin eget erat urna.\nDonec vel dui vel felis efficitur posuere vitae nec massa. Nullam auctor\nporttitor ligula, eget consequat sem hendrerit ac. Nam tristique aliquet sapien,\nvel tincidunt urna mattis porttitor. Quisque ullamcorper eu lectus vitae luctus.`;\n\nconsole.log(hideSomeWords(text));\n```\nconsistently prints:\n```\n_____ ipsum dolor ___ amet, ___________ adipiscing ____.Proin ____ ____ urna.\nDonec ___ dui vel felis efficitur posuere _____ nec _____. Nullam ______\n_________ ______, eget consequat ___ _________ ac. ___ tristique _______ sapien,\nvel _________ urna mattis porttitor. _______ ullamcorper eu lectus vitae luctus.\n```\n\n### Parameters\n|Name|Type|Default|Description|\n|---|---|---|---|\n|text|string| |The input text|\n|percentage|number|0.3|A percentage between 0.0 to 1.0 which determines the amount of (hideable) words to hide|\n|character|string|_|The replacement character|\n|skipLength|number|2|The character length up to which words will not be hidden|  \n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherouvim%2Fhide-some-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherouvim%2Fhide-some-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherouvim%2Fhide-some-words/lists"}