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

collect all kinds of utility functions that are often used by us.

  • 1.0.6
  • lastest
  • tag/1.0.6
  • Source
  • npm
  • Socket score

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

fe-utils v1.0.4

collect all kinds of utility functions that are often used by us.

Installation

In a browser:
<script src="fe-utils.js"></script>
Using npm:
$ npm i -g npm
$ npm i --save fe-utils
Usage:
// Load the full build.
var feUtils = require('fe-utils') // not recommend

// Load method categories.
var cookie = require('fe-utils/cookie')
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
    • isAndroid / isIOS / isWindowPhone / isWX / isWeibo / isMobile / isPC
  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

Keywords

FAQs

Package last updated on 22 May 2017

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