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

utils2js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils2js

Common tool method encapsulation

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

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

Utils2js

一个基于TypeScriptesdoc编写的工具方法

相应的工具方法已生成文档

安装方式

npm run utils2js

使用方式

import {
    _Brower,
    _Main,
    _Number,
    _String,
    _Url
} from 'utils2js'

根据自身需求,按需引用对应类型的方法

比如引用_Main对象下的Logger方法

const A = Logger('测试Logger')
A.info('测试成功了')
const test = [
    123,
    '123',
    true,
    {name: '张三'},
    function name () {
        return '张三'
    },
    /^\d+$/,
    null,
    undefined,
    [1, 2, 3],
    new Date(),
    new Error()
]
test.forEach(item => {
    A.info(Type(item))
})

Keywords

FAQs

Package last updated on 20 Jul 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