https://github.com/danwakeem/ellipsis-format
Master of none intro format
https://github.com/danwakeem/ellipsis-format
ellipsis npm npm-package text-formatting titlelayout
Last synced: 10 months ago
JSON representation
Master of none intro format
- Host: GitHub
- URL: https://github.com/danwakeem/ellipsis-format
- Owner: Danwakeem
- Created: 2018-05-31T05:34:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T13:33:51.000Z (about 8 years ago)
- Last Synced: 2025-07-16T03:12:57.470Z (11 months ago)
- Topics: ellipsis, npm, npm-package, text-formatting, titlelayout
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ellipsis-Format
[](https://travis-ci.org/Danwakeem/ellipsis-format)
[](https://coveralls.io/github/Danwakeem/ellipsis-format?branch=master)
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.)
## Installation
```
npm i ellipsis-format --save
```
## Useage
```
const ellipsisFormat = require('ellipsis-format');
ellipsisFormat(params);
```
## Param values
* `input` - *[[String], [String]]* - 2D array with the following format [[String, String]]
* `min` - *Number* - Minimum number of '.'s between the two strings
## Example output
```
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
*/
```