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

bellajs

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bellajs - npm Package Compare versions

Comparing version 3.3.5 to 3.3.6

2

package.json
{
"version": "3.3.5",
"version": "3.3.6",
"name": "bellajs",

@@ -4,0 +4,0 @@ "description": "A set of helpful and usual functions for browser and node.",

@@ -6,5 +6,5 @@ bella.js

#Methods
# Methods
##DataType detection
## DataType detection
##### Bella.isString(Anything val)

@@ -21,3 +21,3 @@ ##### Bella.isNumber(Anything val)

##String manipulation
## String manipulation
##### Bella.createId(Number length [, String prefix])

@@ -39,3 +39,3 @@ ##### Bella.encode(String s)

##Array & Object manipulation
## Array & Object manipulation
##### Bella.unique(Array a)

@@ -52,3 +52,3 @@ ##### Bella.max(Array a)

##DOM
## DOM
##### Bella.dom.one(String selectors)

@@ -60,3 +60,3 @@ ##### Bella.dom.all(String selectors)

##Event
## Event
##### Bella.event.listen(String|Element s, String eventName, Function callback)

@@ -68,3 +68,3 @@ ##### Bella.event.ignore(String|Element s, String eventName, Function callback)

##DateTime
## DateTime
##### Bella.date.format(String pattern, Date|Number|String input)

@@ -77,3 +77,3 @@ ##### Bella.date.relativize(Date|Number|String input)

##Scheduler
## Scheduler
##### Bella.scheduler.every(String pattern, Function callback)

@@ -86,5 +86,6 @@ ##### Bella.scheduler.once(String pattern, Function callback)

I like to use Bella.scheduler instead of setInterval or setTimeout, because it runs only one timer for the entire process. Regarding parameter "pattern" for Bella.scheduler.every, it may be:
1, A string in the format of 'Y m d H i s'. For example:
Almost cases it maybe better if we use Bella.scheduler instead of setInterval or setTimeout, because it runs only one timer for the entire process. Regarding parameter "pattern" for Bella.scheduler.every, it may be:
1, A string in the format of 'Y m d H i s'. For example:
- "2040 05 16 15 30 10" --> run callback at 15:30:10 on May 16, 2040

@@ -96,3 +97,3 @@ - - "* 05 16 15 30 10" --> run callback at 15:30:10 on May 16 of years --> similar to yearly('05 16 15 30 10', callback)

- "* * * * * 10" --> run callback at the 10th second of minutes.
2, A string in the format of 'weekday H:i:s'. For example:

@@ -102,7 +103,7 @@ - "sunday 15:30:10" --> run callback on Sundays at 15:30:10 --> similar to 'sun 15:30:10'

- "sunday 15" --> run callback on Sundays at 15:00:00 --> similar to 'sun 15'
3, A string in the format of 'N unit'. For example:
- Bella.scheduler.every('5m', callback) --> call callback after every 5 minutes
- Bella.scheduler.once('5h', callback) --> call callback after 5 minutes, then stop
The available units: d (days), h (hours), m (minutes), s (seconds).

@@ -112,3 +113,3 @@

#Propertiess
# Propertiess

@@ -115,0 +116,0 @@ ##### Bella.id

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