# sf-common-func

> > 空间原力公共方法

Latest version **0.0.3** (published 2019-09-17) · 0 weekly downloads

## Install

```sh
npm install sf-common-func
pnpm add sf-common-func
yarn add sf-common-func
bun add sf-common-func
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-09-17 |
| First published | 2019-09-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | leo_wang |
| Keywords | spacesforce common functions js |

## Links

- npm: https://www.npmjs.com/package/sf-common-func
- npm.io page: https://npm.io/package/sf-common-func

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2019-09-17
- 0.0.2 — 2019-09-16
- 0.0.1 — 2019-09-16

## README

# spacesforce common function js 

> 空间原力公共方法

## 发布
``` bash
npm login  #登录
npm publish #发布
npm version patch  #1.0.1 表示小的bug修复
npm version minor  #1.1.0 表示新增一些小功能
npm version mmajor #2.0.0 表示大的版本或大升级
npm version preminor #1.1.0-0 后面多了个0，表示预发布
```

## 安装

``` bash
$ npm install sf-common-func -S
```

## 全局引用main.js
``` bash
import $sfcommonfunc from 'sf-common-func'
Vue.prototype.$sfcommonfunc = $sfcommonfunc
```

## 页面调用
``` bash
this.$sfcommonfunc.getRandStr(n) #获取n位随机数
this.$sfcommonfunc.getCurTime() #获取当前时间
this.$sfcommonfunc.parseQueryString(str) #获取url参数
this.$sfcommonfunc.getCookie(k) #获取cookie
this.$sfcommonfunc.setCookie(k, v) #设置cookie
this.$sfcommonfunc.delCookie(k) #删除cookie
```

---
_Source: https://npm.io/package/sf-common-func · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
