{"id":18327209,"url":"https://github.com/dalikewara/vcmpad","last_synced_at":"2026-05-18T03:03:22.785Z","repository":{"id":57391191,"uuid":"169866103","full_name":"dalikewara/vcmpad","owner":"dalikewara","description":"String padding generator with custom Left/Right-Padding style","archived":false,"fork":false,"pushed_at":"2022-08-29T19:04:54.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T01:22:30.702Z","etag":null,"topics":["generator","helper","javascript","lps","lpz","npm","rps","rpz","string","tool","toolkit","vascomm"],"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/dalikewara.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dalikewara","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-02-09T12:45:03.000Z","updated_at":"2024-01-26T12:20:27.000Z","dependencies_parsed_at":"2022-09-19T06:02:10.172Z","dependency_job_id":null,"html_url":"https://github.com/dalikewara/vcmpad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dalikewara/vcmpad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalikewara%2Fvcmpad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalikewara%2Fvcmpad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalikewara%2Fvcmpad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalikewara%2Fvcmpad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalikewara","download_url":"https://codeload.github.com/dalikewara/vcmpad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalikewara%2Fvcmpad/sbom","scorecard":{"id":317765,"data":{"date":"2025-08-11","repo":{"name":"github.com/dalikewara/vcmpad","commit":"e25fa785eb17e687beb29b3f6a8ae8b1c41ffb65"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T00:37:52.403Z","repository_id":57391191,"created_at":"2025-08-18T00:37:52.414Z","updated_at":"2025-08-18T00:37:52.414Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008111,"owners_count":26084396,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["generator","helper","javascript","lps","lpz","npm","rps","rpz","string","tool","toolkit","vascomm"],"created_at":"2024-11-05T19:09:57.565Z","updated_at":"2025-10-11T17:33:21.798Z","avatar_url":"https://github.com/dalikewara.png","language":"JavaScript","funding_links":["https://github.com/sponsors/dalikewara"],"categories":[],"sub_categories":[],"readme":"[![npm package](https://nodei.co/npm/vcmpad.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/vcmpad/)\n\n[![version](https://img.shields.io/npm/v/vcmpad.svg?style=flat)](https://img.shields.io/npm/v/vcmpad.svg?style=flat)\n[![build](https://img.shields.io/circleci/project/github/dalikewara/vcmpad.svg?style=flat)](https://img.shields.io/circleci/project/github/dalikewara/vcmpad.svg?style=flat)\n[![language](https://img.shields.io/github/languages/top/dalikewara/vcmpad.svg?style=flat)](https://img.shields.io/github/languages/top/dalikewara/vcmpad.svg?style=flat)\n[![download](https://img.shields.io/npm/dt/vcmpad.svg?style=flat)](https://img.shields.io/npm/dt/vcmpad.svg?style=flat)\n[![dependents](https://img.shields.io/librariesio/dependents/npm/vcmpad.svg?style=flat)](https://img.shields.io/librariesio/dependents/npm/vcmpad.svg?style=flat)\n[![issue](https://img.shields.io/github/issues/dalikewara/vcmpad.svg?style=flat)](https://img.shields.io/github/issues/dalikewara/vcmpad.svg?style=flat)\n[![last_commit](https://img.shields.io/github/last-commit/dalikewara/vcmpad.svg?style=flat)](https://img.shields.io/github/last-commit/dalikewara/vcmpad.svg?style=flat)\n[![license](https://img.shields.io/npm/l/vcmpad.svg?style=flat)](https://img.shields.io/npm/l/vcmpad.svg?style=flat)\n\n# Fast, lightweight, and customable string padding generator\nString padding generator with custom Left/Right-Padding style. It allows you to generate string padding format such as LPS *(Left Padding Space)*, LPZ *(Left Padding Zero)*, RPS *(Right Padding Space)*, and RPZ *(Right Padding Zero)*\u0026mdash;or even you can create your own custom format.\n\n### Installation\nNPM\n\n```console\nnpm install vcmpad --save\n```\n\nBrowser\n\n```js\n// Bower\nbower install vcmpad --save\n```\n\n### Initialization\nNPM\n\n```js\nconst vcmpad = require('vcmpad');\n```\n\nBrowser\n\n```js\n// Bower\n\u003cscript src=\"bower_components/vcmpad/dist/vcmpad.min.js\"\u003e\u003c/script\u003e\n```\n\n# Quickstart\nThere are two basic functions (`vcmpad.left` and `vcmpad.right`) to create String-Padding format using `vcmpad`, and they're absolutelly easy to use.\n\n```js\nvcmpad.left(n, val, format[optional], direction[optional]);\n```\n\n- Arguments\n  - *string|integer* **n**\n  - *string|integer* **val**\n  - *string|integer* **format** [optional]\n    - *default* space | ' '\n  - *boolean* **direction** [optional]\n    - *default* true\n    - only takes effect if `val.length \u003e n`.\n    - if *false*, return last `n.length` characters.\n\n### Left-Padding\nA simple LPS format can be done like this:\n\n```js\nvar str = vcmpad.left(10, 'test');\n\nconsole.log(str); // output '      test'\n```\n\nNext, you may try to make other Left-Padding combinations, for example:\n\n```js\nvcmpad.left(10, 'test', '0'); // output '000000test'\n\nvcmpad.left(10, 'test', 'left'); // output 'leftleftle'\n\nvcmpad.left(10, 'test', 'left', false); // output 'ftlefttest'\n\nvcmpad.left(10, 'test1234567890'); // output 'test123456'\n```\n\n### Right-Padding\nA simple RPS format can be done like this:\n\n```js\nvar str = vcmpad.right(10, 'test');\n\nconsole.log(str); // output 'test      '\n```\n\nNext, you may try to make other Right-Padding combinations, for example:\n\n```js\nvcmpad.right(10, 'test', '0'); // output 'test000000'\n\nvcmpad.right(10, 'test', 'right'); // output 'testrightr'\n\nvcmpad.right(10, 'test', 'right', false); // output 'rightright'\n\nvcmpad.right(10, 'test1234567890'); // output 'test123456'\n```\n\n### Direction\nThe `direction` argument gives you option where string position should be returned if length of result or value higger than the number of `n` argument\u0026mdash;basicly, it is first `n length` characters or last `n length` charatecrs.\n\n```js\nvcmpad.left(10, 'test1234567890'); // output 'test123456'\n\nvcmpad.left(10, 'test1234567890', false); // output '1234567890'\n\nvcmpad.left(10, 'test', 'left'); // output 'leftleftle'\n\nvcmpad.left(10, 'test', 'left', false); // output 'ftlefttest'\n```\n\n# Release\n\n### Changelog\nSee [https://github.com/dalikewara/vcmpad/blob/master/CHANGELOG.md](https://github.com/dalikewara/vcmpad/blob/master/CHANGELOG.md).\n\n### Credits\nCopyright \u0026copy; 2019 [Dali Kewara](https://www.dalikewara.com).\n\n### License\n[MIT License](https://github.com/dalikewara/vcmpad/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalikewara%2Fvcmpad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalikewara%2Fvcmpad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalikewara%2Fvcmpad/lists"}