Socket
Socket
Sign inDemoInstall

ellipsis-format

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ellipsis-format

Master of none intro format


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Ellipsis-Format

Build Status Coverage Status

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

 */

Keywords

FAQs

Package last updated on 31 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc