Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
ellipsis-format
Advanced tools
Have you seen master of none? You know the title sequence where it has the names with all of those ... in it? I thought it would be cool if there was an npm package that looked like that. (I am sure it already exists but I couldn't find it.)
npm i ellipsis-format --save
const ellipsisFormat = require('ellipsis-format');
ellipsisFormat(params);
input
- [[String], [String]] - 2D array with the following format [[String, String]]min
- Number - Minimum number of '.'s between the two strings
const ellipsisFormat = require('ellipsis-format');
const output = ellipsisFormat({
min: 30,
input: [
['Hello','Man'],
['Photographer','Danwakeem'],
['Softare','NPM Pack'],
['Errors','10'],
]
});
/*
output
Hello......................Man
Photographer.........Danwakeem
Softare...............NPM Pack
Errors......................10
*/
FAQs
Master of none intro format
The npm package ellipsis-format receives a total of 1 weekly downloads. As such, ellipsis-format popularity was classified as not popular.
We found that ellipsis-format demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.