1.0.2 • Published 3 years ago

@shengshunyan/utils v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@shengshunyan/utils

npm Version Node.js GitHub License

日常工作积累的工具函数

Installation

$ npm install --save @shengshunyan/utils

Usage

Script tag

<script src="./utils.js"></script>
<script>
    const arr = [1, 3, 2, 2, 2]
    
    utils.sort.bubbleSort(arr)
</script>

CommonJs

const utils = require('@shengshunyan/utils')

const arr = [1, 3, 2, 2, 2]
const bubbleSortArr = utils.sort.bubbleSort(arr)
console.log('bubbleSortArr: ', bubbleSortArr)

ESModule

import { sort } from '@shengshunyan/utils'

const arr = [1, 3, 2, 2, 2]
const bubbleSortArr = sort.bubbleSort(arr)
console.log('bubbleSortArr: ', bubbleSortArr)

Testing

$ npm test

License

The MIT License (Expat). See the license file for details.

Keywords

utils, JavaScript

包维护

# 按公开库发布,在运行 npm 发布命令时要加参数
$ npm publis --access public

# 升级补丁版本号
$ npm version patch

# 升级小版本号
$ npm version minor

# 升级大版本号
$ npm version major