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

fe-utils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fe-utils - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "fe-utils",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "fe-utils.js",

@@ -1,2 +0,2 @@

# fe-utils v1.0.2
# fe-utils v1.0.4
collect all kinds of utility functions that are often used by us.

@@ -20,3 +20,3 @@

// Load the full build.
var feUtils = require('fe-utils')
var feUtils = require('fe-utils') // not recommend

@@ -28,21 +28,21 @@ // Load method categories.

#### allMethods:
1. ** NumberToChinese **
* NumberToChinese(12345) // '一万二千三百四十五'
* NumberToChinese(12345, true) // '壹万贰仟叁佰肆十伍'
2. ** cookie **
* setCookie(name, domain, domain, expiredays)
* getCookie(name)
* delCookie(name, domain)
3. ** date **
* dateFormat() // dateFormat(new Date(), 'MM月dd日 hh:mm:ss')
4. ** detectedInfos **
1. **NumberToChinese**
* ```NumberToChinese(12345) // '一万二千三百四十五'```
* ```NumberToChinese(12345, true) // '壹万贰仟叁佰肆十伍'```
2. **cookie**
* ```setCookie(name, domain, domain, expiredays)```
* ```getCookie(name)```
* ```delCookie(name, domain)```
3. **date**
* ```dateFormat() // dateFormat(new Date(), 'MM月dd日 hh:mm:ss')```
4. **detectedInfos**
* isAndroid / isIOS / isWindowPhone / isWX / isWeibo / isMobile / isPC
5. ** preventViewScroll **
5. **preventViewScroll**
* <https://github.com/lzwaiwai/preventViewScroll>
6. ** urlQuery **
* queryOne // queryOne('name', ['http://xx.com?name=kevin']) -> 'kevin'
* queryAll // queryOne('http://xx.com?name=kevin&age=18') -> {name: 'kevin', age: 18}
7. ** toRoman **
toRoman(25) // 'XXV'
8. ** getVersionOfIOS **
6. **urlQuery**
* ```queryOne // queryOne('name', ['http://xx.com?name=kevin']) -> 'kevin'```
* ```queryAll // queryOne('http://xx.com?name=kevin&age=18') -> {name: 'kevin', age: 18}```
7. **toRoman**
* ```toRoman(25) // 'XXV'```
8. **getVersionOfIOS**
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