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 - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "xhelper",
"version": "2.0.0",
"version": "2.0.1",
"description": "JavaScript helper library",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,5 +8,32 @@ # xhelper

### Usage
### Backend Usage
```javascript
const xhelper = require('xhelper');
```
```
### Frontend Usage
```html
<script src="./node_modules/xhelper/xhelper.min.js"></script>
```
### Functions Documentation
| Function Name | Description |
| ---------------|-------------|
| containsObject | Checks if the array contains a certain object|
| ceil | Ceil the given number |
| floor | Floor the given number |
| round | Round the given number |
| truncate | Truncate the given number |
| escapeRegex | Escape Regex input |
| unspace | Remove spaces from the string |
| toBoolean | Converts the string to boolean value |
| isUndefined | Checks if object is undefined |
| isNull | Checks if object is null |
| deg2rad | Converts degree angle to radiant |
| validateEmail | Validates the given email address |
| leadingZeroes | Adds leading zeroes to the string untill it matches the given characters length |
| commaSeparateNumber | Adds commas to the number at thousands, millions, ... |
| getLastMidnight | Gets the last midnight timestamp according to the user date |
| getCurrentMonthFirstDay | Gets the last midnight of the first day of the month's timestamp according to the user date |
| ceilToMinute | Round number of seconds to the nearest greater number of minutes |
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