{"id":22208330,"url":"https://github.com/topaxi/ember-pad","last_synced_at":"2025-07-27T08:33:14.836Z","repository":{"id":57224111,"uuid":"51059545","full_name":"topaxi/ember-pad","owner":"topaxi","description":"Ember string padding util and helper","archived":false,"fork":false,"pushed_at":"2023-08-07T08:29:50.000Z","size":86,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-16T17:13:43.834Z","etag":null,"topics":["addon","ember","ember-pad","pad","string"],"latest_commit_sha":null,"homepage":null,"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/topaxi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-02-04T07:27:04.000Z","updated_at":"2018-05-10T16:48:56.000Z","dependencies_parsed_at":"2024-06-19T05:33:04.118Z","dependency_job_id":"74e24df4-1be2-4b85-9c4b-deca762c7734","html_url":"https://github.com/topaxi/ember-pad","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fember-pad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fember-pad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fember-pad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaxi%2Fember-pad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topaxi","download_url":"https://codeload.github.com/topaxi/ember-pad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227786774,"owners_count":17819777,"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":["addon","ember","ember-pad","pad","string"],"created_at":"2024-12-02T19:17:42.982Z","updated_at":"2024-12-02T19:17:43.602Z","avatar_url":"https://github.com/topaxi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-pad [![Build Status](https://travis-ci.org/topaxi/ember-pad.svg?branch=master)](https://travis-ci.org/topaxi/ember-pad)\n\nThis README outlines the details of collaborating on this Ember addon.\n\n## Addon Installation\n\n* `ember install ember-pad`\n\n## Addon usage\n\nAs util function\n\n```javascript\nimport { padStart } from 'ember-pad/utils/pad'\nimport { padEnd   } from 'ember-pad/utils/pad'\n\nconsole.log(padStart(5, 2))        // '05'\nconsole.log(padStart('a', 5, ' ')) // '    a'\n\nconsole.log(padEnd(5, 2))        // '500'\nconsole.log(padEnd('a', 5, ' ')) // 'a    '\n```\n\nAs handlebars helper\n\n```handlebars\n\u003cinput type=\"text\" value={{pad-start value 2}}\u003e\n\u003cinput type=\"text\" value={{pad-end value 2}}\u003e\n```\n\nAs template literal function:\n\n```javascript\nimport { padStartTpl } from 'ember-pad/utils/pad'\n\nconsole.log(padStartTpl`${4}:${2}`(2)) // '04:02'\n// OR\nconsole.log(padStartTpl(2)`${4}:${2}`) // '04:02'\n```\n\n### Installation\n\n* `git clone \u003crepository-url\u003e`\n* `cd my-addon`\n* `npm install`\n\n### Linting\n\n* `npm run lint:js`\n* `npm run lint:js -- --fix`\n\n### Running tests\n\n* `ember test` – Runs the test suite on the current Ember version\n* `ember test --server` – Runs the test suite in \"watch mode\"\n* `ember try:each` – Runs the test suite against multiple Ember versions\n\n### Running the dummy application\n\n* `ember serve`\n* Visit the dummy application at [http://localhost:4200](http://localhost:4200).\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n\nLicense\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaxi%2Fember-pad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopaxi%2Fember-pad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaxi%2Fember-pad/lists"}