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

diginext-utils

Package Overview
Dependencies
Maintainers
0
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diginext-utils

README.md

  • 3.13.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
663
increased by25.57%
Maintainers
0
Weekly downloads
 
Created
Source

The library of utility plugins

Exports

  • "diginext-utils/dist": ES6 modules / NodeJS
  • "diginext-utils/esm": Node modules / JavaScript modules

Imports

ES5 module import:

import utils from "diginext-utils";
console.log(utils.xname.NameEN.generateName()); // output some random name in English

// or

import { NameEN } from "diginext-utils/dist/name";
console.log(NameEN.generateName()); // output some random name in English

// or just
import { generateName } from "diginext-utils/dist/name/en";
console.log(generateName()); // output some random name in English

// or with require(...)
const xurl = require("../dist/string/url");
xurl.isLink("abc"); // FALSE
xurl.isLink("https://www.google.com"); // TRUE

Node module import:

IMPORTANT: Set "type" as "module" your package.json

// NodeJS moduies
import utils from "diginext-utils";
console.log(utils.xname.NameEN.generateName()); // output some random name in English
// browser
<script type="module">
	import { NameEN } from "diginext-utils/esm/name/index.js"; // ".js" file extension is required !
	console.log(NameEN.generateName()); // output some random name in English
</script>

Features

  • xconsole
  • xarray
    • sumArray
    • averageArray
    • minArray
    • maxArray
    • sortElementByString
    • sortElementByNumber
    • firstElement
    • lastElement
    • randomIndex
    • randomElement
    • mergeAndMakeUniqueElement
    • allMatchInArray
    • removeItem
    • removeItemByKey
    • getRandom
    • getHalfRandom
    • shuffle
    • moveIndex
    • moveArray
  • xmath
    • rand
    • randRound
    • randHalt
    • randInt
    • randFloat
    • degToRad
    • radToDeg
    • angleBetweenPoints
    • diffDate
    • positiveNumber
  • xname
    • NameEN.generateName()
    • NameVI.generateName()
  • xobject
    • isNull
    • toBool
    • toInt
    • toFloat
    • toArray
    • objectToArray
  • xjson
    • isValid
  • xfile
    • createDir
    • fileMove
    • findFileByExt
  • xstring
    • getBetween
    • makeString
    • toUpperCase
    • toLowerCase
    • titleize
    • capitalize
    • capitalizeName
    • clearUnicodeCharacters
    • generateUUID
    • randAllCharacterByLength
    • randomStringByLength
    • formatNumber
    • generatePassword
    • trimNull
    • addQueryParam
    • getUrlParams
    • isLink
    • getFileNameWithoutExtension
    • getFileNameWithExtension
    • getFileExtension
    • isImage
  • xurl
    • addQueryParam
    • getUrlParams
    • isLink
    • getFileNameWithoutExtension
    • getFileNameWithExtension
    • getFileExtension
    • isImage
  • slug
    • makeSlug
  • color
    • random
    • pSBC
    • hexToRgb
    • hexDarken
    • hexLighten
    • RGBToHex
  • device
  • camera
    • requestCamera
    • requestDeviceOrientationControl
  • browser
    • isPotrait
    • isLandscape
    • ua
    • isFacebookWebview
    • isInAppWebview
  • Timer
    • wait
  • Validation
    • imageValidate
    • videoValidate

Dev

yarn dev

Support

Liên hệ TOP GROUP Developers nếu cần hỗ trợ.

Keywords

FAQs

Package last updated on 16 Sep 2024

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