Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esmile-useful

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esmile-useful - npm Package Compare versions

Comparing version 0.2.0-dev.0.0.5 to 0.2.0

2

package.json
{
"name": "esmile-useful",
"version": "0.2.0-dev.0.0.5",
"version": "0.2.0",
"description": "Esmile Utility",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,2 +16,3 @@ ## Installation

- [Discord](https://discord.gg/aXvuUpvRQs) [Esmile Discord]
- [Docs](https://docs.mresmile.com/docs/useful/start)

@@ -18,0 +19,0 @@ ## Example

/**
* @description Contains all hex colors starting with #
* @author Zastinian
* Contains all hex colors starting with #
* @module colorHashtag
* @param {String} colorHashtag.Color

@@ -5,0 +5,0 @@ * @example

/**
* @description Contains all hex colors starting with 0x
* @author Zastinian
* Contains all hex colors starting with 0x
* @module colorZero
* @param {String} colorZero.Color

@@ -5,0 +5,0 @@ * @example

/**
* @description Contains the colors for the log section
* @author Zastinian
* Contains the colors for the log section
* @module listLogColor
* @param {String} listLogColor.Color

@@ -5,0 +5,0 @@ * @example

/**
* @description Generates a random captcha string with the specified length.
* @author Zastinian
* Generates a random captcha string with the specified length.
* @param {number} [captchaLength=5] - The length of the captcha string to generate (defaults to 5).

@@ -5,0 +4,0 @@ * @example

/**
* @description Generates a unique key with the specified prefix.
* @author Zastinian
* Generates a unique key with the specified prefix.
* @param {string} [prefix] - The prefix to use for the key (defaults to "PREFIX").

@@ -5,0 +4,0 @@ * @example

/**
* @description Generates a random password of the specified length.
* @author Zastinian
* Generates a random password of the specified length.
* @param {number} [length=10] - The length of the password to generate.

@@ -5,0 +4,0 @@ * @example

/**
* @description Formats a number to a string with thousand separators.
* @author Zastinian
* Formats a number to a string with thousand separators.
* @param {number} number - The number to format.

@@ -14,4 +13,3 @@ * @example

/**
* @description Formats a string to title case.
* @author Zastinian
* Formats a string to title case.
* @param {string} str - The string to format.

@@ -32,4 +30,3 @@ * console.log(formats.TitleCase("Example of text"))

/**
* @description Formats a string to sentence case.
* @author Zastinian
* Formats a string to sentence case.
* @param {string} str - The string to format.

@@ -46,4 +43,3 @@ * console.log(formats.SentenceCase("Example Of Text"))

/**
* @description Formats a string to camel case.
* @author Zastinian
* Formats a string to camel case.
* @param {string} str - The string to format.

@@ -62,4 +58,3 @@ * console.log(formats.CamelCase("Example of text"))

/**
* @description Formats a string to kebab case.
* @author Zastinian
* Formats a string to kebab case.
* @param {string} str - The string to format.

@@ -74,4 +69,3 @@ * console.log(formats.KebabCase("Example of text"))

/**
* @description Formats a string to snake case.
* @author Zastinian
* Formats a string to snake case.
* @param {string} str - The string to format.

@@ -86,4 +80,3 @@ * console.log(formats.SnakeCase("Example of text"))

/**
* @description Formats a date as a string with a customizable order of day, month and year.
* @author Zastinian
* Formats a date as a string with a customizable order of day, month and year.
* @param {Date} date - The date to format.

@@ -90,0 +83,0 @@ * @param {string} [order="dmy"] - The order in which to display the day, month and year.

/**
* @description Make a log with or without color
* @author Zastinian
* Make a log with or without color
* @param {String} text

@@ -5,0 +4,0 @@ * @param {String} color

/**
* @description Converts the indicated time to milliseconds
* @author Zastinian
* Converts the indicated time to milliseconds
* @param {String} ms

@@ -5,0 +4,0 @@ * @example

/**
* @description Get a random number between 2 numbers
* @author Zastinian
* Get a random number between 2 numbers
* @param {Number} min

@@ -5,0 +4,0 @@ * @param {Number} max

/**
* @description Get a random element from an array
* @author Zastinian
* Get a random element from an array
* @param {Array} items

@@ -5,0 +4,0 @@ * @example

/**
* @description Returns a selected symbol
* @author Zastinian
* Returns a selected symbol
* @module colorZero
* @param {String} symbols.Symbol

@@ -9,3 +9,2 @@ * @example

*/
module.exports = {

@@ -12,0 +11,0 @@ square: "█",

/**
* @description Check what type is provided
* @author Zastinian
* Check what type is provided
* @param {any} obj

@@ -5,0 +4,0 @@ * @example

/**
* @description Execute the code after a while
* @author Zastinian
* @param {Number} delay
* A function that returns a promise that resolves after a specified delay.
* @module wait
* @param {number} [delay=0] - The delay, in milliseconds, before the promise should resolve.
* @example

@@ -11,5 +11,4 @@ * async function async() {

* async()
* @returns {void} void
* @returns {Promise<void>} - A promise that resolves after the specified delay.
*/
module.exports = (delay = 0) => new Promise((resolve) => setTimeout(resolve, delay));
/**
* @description Check if the text is not empty
* @author Zastinian
* Check if the text is not empty
* @param {String} value

@@ -5,0 +4,0 @@ * @example

/**
* @description Check if it is a email
* @author Zastinian
* Check if it is a email
* @param {String} email

@@ -5,0 +4,0 @@ * @example

/**
* @description Check if it is a number
* @author Zastinian
* Check if it is a number
* @param {Number} number

@@ -5,0 +4,0 @@ * @example

/**
* @description Check that the text is a link | Only texts with http: or https:
* @author Zastinian
* Check that the text is a link | Only texts with http: or https:
* @param {String} content

@@ -5,0 +4,0 @@ * @param {Array} whitelist

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