Socket
Socket
Sign inDemoInstall

esmile-useful

Package Overview
Dependencies
0
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

esmile-useful

Esmile Utility


Version published
Maintainers
1
Weekly downloads
3
Install size
94.2 kB

Weekly downloads

Readme

Source

Installation

npm i esmile-useful

yarn add esmile-useful

Nodejs Version

  • v16.9.0 or higher
  • Discord [Esmile Discord]
  • Docs

Example

Esmile

Sections

Validations

FunctionDescription
isValidNumberCheck if it is a number
isEmptyStringCheck if the text is not empty
isValidUrlCheck that the text is a link
isValidEmailCheck if it is a email

Generators

FunctionDescription
generateCaptchaGenerates a random captcha string with the specified length
generateKeyGenerates a unique key with the specified prefix
generatePasswordGenerates a random password of the specified length

Colors

FunctionDescription
colorHashtagContains all hex colors starting with #
colorZeroContains all hex colors starting with 0x
listLogColorContains the colors for the log section

Utils

FunctionDescription
formatsDifferent types of text and number formats
    NumberFormats a number to a string with thousand separators
    TitleCaseFormats a string to title case
    SentenceCaseFormats a string to sentence case
    CamelCaseFormats a string to camel case
    KebabCaseFormats a string to kebab case
    SnakeCaseFormats a string to snake case
    DateForFormats a date as a string with a customizable order of day, month and year
millisecondConverts the indicated time to milliseconds
waitExecute the code after a while
logMake a log with or without color
typeCheck what type is provided
randomGet a random number between 2 numbers
randomItemGet a random element from an array
symbolsReturns a selected symbol

Keywords

FAQs

Last updated on 20 Mar 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc