🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

aggrandizer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aggrandizer

Progressively aggrandizes a title.

1.2.7
latest
Source
npm
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

aggrandizer

Progressively aggrandizes a title.

Installation

npm install aggrandizer

Usage

var createAggrandizer = require('aggrandizer').create;
var aggrandizer = createAggrandizer();
var titles = aggrandizer.aggrandize({
  baseTitle: 'Yob',
  iterations: 12
});

console.log(titles.map(formatTitle));

Output:

[
  'Yob',
  'High Yob',
  'Principal Yob',
  'Supreme Yob',
  'Supreme Yob Knight',
  'Supreme Yob Lady|Lord',
  'Supreme Yob General',
  'Supreme Yob General',
  'The Great Yob General',
  'The Great Yob General',
  'The Great Yob General',
  'The Great Yob General' 
]

The progression is random. A title may stick for every iterations, or it may stick only for one iteration.

The generated titles are objects that look like this:

[
  {
    "base": "Yob"
  },
  {
    "suffix": "of the North Wind",
    "base": "Yob"
  },
  {
    "suffix": "of the West Wind",
    "base": "Yob"
  },
  {
    "suffix": "of the South Wind",
    "base": "Yob"
  },
  {
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "prefix": "Expert",
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "preprefix": "Superior",
    "prefix": "Expert",
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "preprefix": "Principal",
    "prefix": "Prime",
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "preprefix": "Supreme",
    "prefix": "Master",
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "preprefix": "Supreme",
    "prefix": "Grandmaster",
    "suffix": "of the East Wind",
    "base": "Yob"
  },
  {
    "preprefix": "Supreme",
    "prefix": "Grandmaster",
    "suffix": "of the East Wind",
    "base": "Yob"
  }
]

Tests

Run tests with make test.

License

MIT.

Keywords

titles

FAQs

Package last updated on 30 Jun 2016

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