New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xhelper

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhelper

JavaScript helper library

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

xhelper

Installattion

npm install xhelper --save

Backend Usage

const xhelper = require('xhelper');

Frontend Usage

<script src="./node_modules/xhelper/xhelper.min.js"></script>

Functions Documentation

Function NameDescription
containsObjectChecks if the array contains a certain object
ceilCeil the given number
floorFloor the given number
roundRound the given number
truncateTruncate the given number
escapeRegexEscape Regex input
unspaceRemove spaces from the string
toBooleanConverts the string to boolean value
isUndefinedChecks if object is undefined
isNullChecks if object is null
deg2radConverts degree angle to radiant
validateEmailValidates the given email address
leadingZeroesAdds leading zeroes to the string untill it matches the given characters length
commaSeparateNumberAdds commas to the number at thousands, millions, ...
getLastMidnightGets the last midnight timestamp according to the user date
getCurrentMonthFirstDayGets the last midnight of the first day of the month's timestamp according to the user date
ceilToMinuteRound number of seconds to the nearest greater number of minutes
getRandomElementsGet Random elements from an array (duplicates are allowed)
getUniqueElementsGet Random unique elements from an array

Keywords

FAQs

Package last updated on 29 Jun 2018

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