{"id":17093093,"url":"https://github.com/souvikinator/pad-even","last_synced_at":"2026-05-01T01:32:23.025Z","repository":{"id":74145388,"uuid":"357785649","full_name":"souvikinator/pad-even","owner":"souvikinator","description":"pad strings evenly ","archived":false,"fork":false,"pushed_at":"2021-04-16T06:37:49.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T12:54:19.516Z","etag":null,"topics":["padding","spacing","string"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pad-even","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/souvikinator.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}},"created_at":"2021-04-14T05:32:26.000Z","updated_at":"2022-08-25T03:56:34.000Z","dependencies_parsed_at":"2023-03-11T04:00:13.358Z","dependency_job_id":null,"html_url":"https://github.com/souvikinator/pad-even","commit_stats":null,"previous_names":["darthcucumber/pad-even"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/souvikinator/pad-even","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Fpad-even","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Fpad-even/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Fpad-even/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Fpad-even/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souvikinator","download_url":"https://codeload.github.com/souvikinator/pad-even/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Fpad-even/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["padding","spacing","string"],"created_at":"2024-10-14T14:04:35.078Z","updated_at":"2026-05-01T01:32:22.984Z","avatar_url":"https://github.com/souvikinator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pad-even\n\nsimple package to pad strings evenly\n\n## Install\n\n`npm install pad-even`\n\n## example:\n\n- without padeven\n\n```js\nconst obj = {\n    'abcd': 1234,\n    'def': 123,\n    'verylongword': 'evenly padded'\n};\n\nfor (let key in obj) {\n    console.log(`${key}= ${obj[key]}`);\n}\n\n/*\noutput:\n\nabcd= 1234\ndef= 123\nverylongword= evenly padded\n\n*/\n```\n- with pad-even\n\n```js\nconst padeven=require('pad-even');\nconst obj = {\n    'abcd': 1234,\n    'def': 123,\n    'verylongword': 'evenly padded'\n};\n\nfor (let key in obj) {\n    console.log(`${padeven(key,20)}= ${obj[key]}`);\n}\n\n/*\noutput:\n\nabcd                = 1234\ndef                 = 123\nverylongword        = evenly paddedd\n*/\n```\n\n## API\n\n`padeven(str,n,c)`\n\n- **str**: string that needs to be padded\n- **n**: padding value. Use positive value for padding to the right of the string, negative value for padding to the left of the string\n- **c**: padding string, default is \" \"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Fpad-even","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouvikinator%2Fpad-even","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Fpad-even/lists"}