New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

yang-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yang-utils

init scss and public js

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

yang-utils

初始化css样式及常用js

npm i yang-utils

scs依赖于scss预编译(持续更新)

js方法说明:(持续更细)

  • 原型方法
  • 时间日期格式化
    new Date().Format('yyyy-MM-dd hh:mm:ss')
  • 函数方法
  • newData
    深copy

  • getDifferent(arr1,arr2)
    // 取出两个数组中的不同元素

  • arrayDedup(arr)
    // 数组去重

  • swapItem(arr,fromIndex,toIndex)
    // 数组元素移动
    // fromIndex: 当前元素所在位置索引, toIndex: 移动到交换的位置索引

  • 常用正则编录(待实现)

Keywords

yang1008

FAQs

Package last updated on 01 Nov 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