{"id":16974693,"url":"https://github.com/nulldev/whitespace-parse","last_synced_at":"2025-03-21T20:42:40.065Z","repository":{"id":103787857,"uuid":"116963363","full_name":"NullDev/whitespace-parse","owner":"NullDev","description":":black_square_button: A custom single-line whitespace de- and encoder.","archived":false,"fork":false,"pushed_at":"2021-01-18T10:46:42.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T21:27:41.247Z","etag":null,"topics":["npm","npm-package","nulldev","parser","parsing","whitespace"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullDev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-10T13:46:09.000Z","updated_at":"2025-03-19T01:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ce6484a-a867-4aa6-98aa-51c885761cbf","html_url":"https://github.com/NullDev/whitespace-parse","commit_stats":null,"previous_names":["nldev/whitespace-parse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2Fwhitespace-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2Fwhitespace-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2Fwhitespace-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2Fwhitespace-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullDev","download_url":"https://codeload.github.com/NullDev/whitespace-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868035,"owners_count":20523581,"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":["npm","npm-package","nulldev","parser","parsing","whitespace"],"created_at":"2024-10-14T01:07:36.978Z","updated_at":"2025-03-21T20:42:40.037Z","avatar_url":"https://github.com/NullDev.png","language":"JavaScript","readme":"# Whitespace-Parse\n\n\u003cp align=\"center\"\u003e\nCustom single-line whitespace de- and encoder\n\u003c/p\u003e\n\n## :information_source: About\n\nThis NodeJS package allows you to encode text to whitespace and vice versa. \u003cbr\u003e\n**Note:** This is **CUSTOM** whitespace! There are _no_ linebreaks! Only tabs and spaces.\n\nHow?\n\n```Assembly\na = 97                        - ASCII Character code in decimal\na = 1100001                   - Same value in binary\na = '\t\t    \t'     - In Whitespace\n```\n\nSo each character has a sequence of exactly 7 binary values. \u003cbr\u003e\nIf the the encoding of a string has less characters, for example \"!\" which decodes to \"100001\" (6 characters) a padding needs to be applied at the start of the string. \u003cbr\u003e\nIn this case it would be 0 + 100001 to get to the 7 characters.\n\n## :postbox: NPM\n\n[![](https://nodei.co/npm/whitespace-parse.svg?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/whitespace-parse)\n\n\u003chr\u003e\n\n## :wrench: Installation\n\n```Assembly\nnpm i whitespace-parse\n```\n\n\u003chr\u003e\n\n## :bulb: API\n\n- [decode()](#decode)\n- [encode()](#encode)\n- [toBinary()](#tobinary)\n\n### decode()\n\n| No. | Arguments | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| 1 | string | the whitespace string to decode | yes | N/A |\n\n**Example:**\n\n```Javascript\nvar whitespace = require(\"whitespace-parse\");\n\nconsole.log(whitespace.decode(\"\t  \t   \t\t \t  \t\"));\n// =\u003e \"Hi\"\n```\n\n### encode()\n\n| No. | Arguments | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| 1 | string | the ASCII string to encode | yes | N/A |\n\n**Example:**\n\n```Javascript\nvar whitespace = require(\"whitespace-parse\");\n\nconsole.log(whitespace.encode(\"Hi\"));\n// =\u003e \"\t  \t   \t\t \t  \t\"\n```\n\n### toBinary()\n\n| No. | Arguments | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| 1 | string | The ASCII string to encode | yes | N/A |\n| 2 | boolean | Should all character sequences be split by a space | no | no |\n\n**Example:**\n\n```Javascript\nvar whitespace = require(\"whitespace-parse\");\n\nconsole.log(whitespace.toBinary(\"hi\"));\n// =\u003e \"11010001101001\"\n\nconsole.log(whitespace.toBinary(\"hi\", true));\n// =\u003e \"1101000 1101001\"\n```\n\n\u003chr\u003e\n\n## :copyright: Copyright\n\n`Copyright (c) NullDev`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulldev%2Fwhitespace-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulldev%2Fwhitespace-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulldev%2Fwhitespace-parse/lists"}