Skip to content

jusansilva/complete-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Complete-line

Aboout

Lib to complete line with character

Install

npm install complete-line --save

In your code

const full = require('complete-line');

var refactor = () => {
    var str = "It is only exemplo"; //your string
    var start = "only"; // init complete 
    var char = "#"; // character to complete your string
    var strLength = 10;  // string length

    var newString = full.complete(start, char, str, strLength);

    console.log(newString);
    //It is only########## exemplo
}

I hope that help you!

Author

San Magno

github LinkedIn Twiter

About

lib to complete line with character

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published