{"id":19475461,"url":"https://github.com/artdecocode/paddys","last_synced_at":"2025-08-11T22:35:49.897Z","repository":{"id":57317934,"uuid":"153181178","full_name":"artdecocode/paddys","owner":"artdecocode","description":"Pad strings to equalise the length of each line.","archived":false,"fork":false,"pushed_at":"2019-04-25T07:49:44.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T01:35:07.995Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://artdeco.bz","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/artdecocode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-10-15T21:02:00.000Z","updated_at":"2019-04-25T07:49:46.000Z","dependencies_parsed_at":"2022-08-25T20:00:51.584Z","dependency_job_id":null,"html_url":"https://github.com/artdecocode/paddys","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fpaddys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fpaddys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fpaddys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fpaddys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artdecocode","download_url":"https://codeload.github.com/artdecocode/paddys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240699239,"owners_count":19843509,"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":[],"created_at":"2024-11-10T19:32:57.934Z","updated_at":"2025-02-25T15:47:02.569Z","avatar_url":"https://github.com/artdecocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# paddys\n\n[![npm version](https://badge.fury.io/js/paddys.svg)](https://npmjs.org/package/paddys)\n\n`paddys` is a package that pads strings so that each line is of the width of the longest line. It can also pad to a specific length.\n\n```sh\nyarn add -E paddys\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`paddys(string: string, options?: Config): string`](#paddysstring-stringoptions-config-string)\n  * [`_paddys.Config`](#type-_paddysconfig)\n- [Copyright](#copyright)\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/0.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport paddys from 'paddys'\n```\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/1.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## `paddys(`\u003cbr/\u003e\u0026nbsp;\u0026nbsp;`string: string,`\u003cbr/\u003e\u0026nbsp;\u0026nbsp;`options?: Config,`\u003cbr/\u003e`): string`\n\nPads the string to the right to equalise the length of each line.\n\n__\u003ca name=\"type-_paddysconfig\"\u003e`_paddys.Config`\u003c/a\u003e__: Options for the program.\n\n| Name  |      Type       |           Description            |\n| ----- | --------------- | -------------------------------- |\n| width | \u003cem\u003enumber\u003c/em\u003e | The width to which to pad lines. |\n\n```js\n/* yarn example/ */\nimport paddys from 'paddys'\n\nconst res = paddys(\n  `Just stop your wandering,\nLook penetratingly into your inherent nature,\nAnd, concentrating your spiritual energy,\nSit in zazen\nAnd break through.`\n)\n```\n```\nJust stop your wandering,____________________\nLook penetratingly into your inherent nature,\nAnd, concentrating your spiritual energy,____\nSit in zazen_________________________________\nAnd break through.___________________________\n```\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/2.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Copyright\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\n      \u003ca href=\"https://artd.eco\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\" alt=\"Art Deco\" /\u003e\n      \u003c/a\u003e\n    \u003c/th\u003e\n    \u003cth\u003e© \u003ca href=\"https://artd.eco\"\u003eArt Deco\u003c/a\u003e   2019\u003c/th\u003e\n    \u003cth\u003e\n      \u003ca href=\"https://www.technation.sucks\" title=\"Tech Nation Visa\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif\"\n          alt=\"Tech Nation Visa\" /\u003e\n      \u003c/a\u003e\n    \u003c/th\u003e\n    \u003cth\u003e\u003ca href=\"https://www.technation.sucks\"\u003eTech Nation Visa Sucks\u003c/a\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/-1.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartdecocode%2Fpaddys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartdecocode%2Fpaddys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartdecocode%2Fpaddys/lists"}