{"id":20780143,"url":"https://github.com/xotic750/normalize-space-x","last_synced_at":"2025-04-30T20:27:26.926Z","repository":{"id":18750989,"uuid":"85227338","full_name":"Xotic750/normalize-space-x","owner":"Xotic750","description":"Trims and replaces sequences of whitespace characters by a single space.","archived":false,"fork":false,"pushed_at":"2023-01-04T23:27:32.000Z","size":2323,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T20:27:19.575Z","etag":null,"topics":["browser","ecmascript","nodejs","normalizer","whitespace-character"],"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/Xotic750.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":"2017-03-16T18:07:33.000Z","updated_at":"2020-01-30T12:41:40.000Z","dependencies_parsed_at":"2023-01-13T19:59:36.009Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/normalize-space-x","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fnormalize-space-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fnormalize-space-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fnormalize-space-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fnormalize-space-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/normalize-space-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777475,"owners_count":21642164,"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":["browser","ecmascript","nodejs","normalizer","whitespace-character"],"created_at":"2024-11-17T13:32:29.602Z","updated_at":"2025-04-30T20:27:26.897Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/normalize-space-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/normalize-space-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/normalize-space-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/normalize-space-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/normalize-space-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/normalize-space-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/normalize-space-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/normalize-space-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/normalize-space-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/normalize-space-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/normalize-space-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/normalize-space-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/normalize-space-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/normalize-space-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/normalize-space-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/normalize-space-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_normalize-space-x\"\u003e\u003c/a\u003e\n\n## normalize-space-x\n\nTrims and replaces sequences of whitespace characters by a single space.\n\n### `module.exports(string)` ⇒ \u003ccode\u003estring\u003c/code\u003e ⏏\n\n\u003ca name=\"module_normalize-space-x\"\u003e\u003c/a\u003e\n\n### `normalize-space-x` ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nThis method strips leading and trailing white-space from a string,\nreplaces sequences of whitespace characters by a single space,\nand returns the resulting string. (ES2019)\n\n**Kind**: static property of [\u003ccode\u003enormalize-space-x\u003c/code\u003e](#module_normalize-space-x)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - The normalized string.  \n**Throws**:\n\n- \u003ccode\u003eTypeError\u003c/code\u003e If string is null or undefined or not coercible.\n\n| Param  | Type                | Description                  |\n| ------ | ------------------- | ---------------------------- |\n| string | \u003ccode\u003estring\u003c/code\u003e | The string to be normalized. |\n\n**Example**\n\n```js\nimport normalizeSpace from 'normalize-space-x';\n\nconsole.log(normalizeSpace(' \\t\\na \\t\\nb \\t\\n') === 'a b'); // true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fnormalize-space-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Fnormalize-space-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fnormalize-space-x/lists"}