3.0.2 • Published 6 years ago

goldfinger v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

goldfinger

Node.js Utils.

npm package

Installing

npm install goldfinger

Usage

const goldfinger = require('goldfinger');

API

.md5(string)

MD5 Hash.

goldfinger.md5('test'); // 098f6bcd4621d373cade4e832627b4f6

.sha1(string)

SHA1 Hash.

goldfinger.sha1('test'); // a94a8fe5ccb19ba61c4c0873d391e987982fbbd3

.sha256(string)

SHA256 Hash.

goldfinger.sha256('test'); // 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

.sha512(string)

SHA512 Hash.

goldfinger.sha512('test'); // ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff

.formatNumber(number)

Thousands separator.

goldfinger.formatNumber(1234567.89); // 1,234,567.89

.httpGet(url, header, data)

HTTP GET.

goldfinger.httpGet('https://api.weixin.qq.com/cgi-bin/token', null, null); // { status: 200, statusText: 'OK', data: { errcode: 41002, errmsg: 'appid missing' } }

.httpPost(url, header, data)

HTTP POST.

goldfinger.httpPost('https://api.weixin.qq.com/cgi-bin/token', null, null); // { status: 200, statusText: 'OK', data: { errcode: 41002, errmsg: 'appid missing' } }
3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago