New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

automatic-name

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

automatic-name

automatic username for chinese and english

latest
Source
npmnpm
Version
1.1.7
Version published
Maintainers
1
Created
Source

automatic-name

How to install

yarn add automatic-name

or

npm install automatic-name

Feature

Create new name

createNewName(language1, language2 ...)

language arguments

  • taiwan
  • chinese
  • english

It will be selected a random language without any arguments.

Get firstname and lastname middle spacing

getSpacing()

Set firstname and lastname middle spacing

setSpacing(string)

Get tag string

getTag()

Set tag string

setTag(string)

Get username

getUsername()

Get fullname

getFullName(option)

option argument

  • option [color=#2a1377](mean: 'spacing', type: 'string')

Get username with Tag

getUsernameWithTag(type [,options])

Get fullname with Tag

getFullnameWithTag(type [,options]) type argument

  • type [color=#2a1fff](mean: 'random type', type: 'string')
    • number (mean: 'random number')
    • timestamp (mean: 'Date.now()')
    • v* (mean: 'uuid extension for uuid library: uuid')

params arguments

  • if type = number, params argument 1 is random count

    default 4

  • uuid extension arguments

Example

const AutomaticName = require('automatic-name');

const name = new AutomaticName();

(async () => {
  name.getUsername();
  // RobertsHolly

  name.getFullname();
  // Roberts Holly

  await name.getUsernameWithTag('v1');
  // RobertsHolly#c39404b1-8170-11eb-9eea-774c26920ecf

  name.createNewName();
  // random a new name
})();

Keywords

automatic-name

FAQs

Package last updated on 12 Feb 2022

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