
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
complete-string
Advanced tools
CompleteString string by any char. This repo is some kind of polyfill for ES7 padLeft.
:hammer: Complete string by any char. This repo is some kind of polyfill for ES2017 padLeft.
$ npm install complete-string
withChar(string: string, length: number, char: string)
Complete with any char:
CompleteString.withChar(' batman', 10, 'a') // => 'aaa batman'
withZero(string: string, length: number)
Complete with 0
:
var date = new Date();
CompleteString.withZero(date.getMonth(), 2) // => '05'
To run unit tests (written in Jasmine) execute:
$ npm test
Use Istanbul to get code coverage ratio.
$ npm run coverage
The MIT License @ 2014
FAQs
🔨 Complete string by any char
The npm package complete-string receives a total of 21 weekly downloads. As such, complete-string popularity was classified as not popular.
We found that complete-string demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.