blockchain-explorer

所属分类:区块链开发
开发工具:HTML
文件大小:3951KB
下载次数:0
上传日期:2018-10-15 06:01:36
上 传 者sh-1993
说明:  区块链浏览器,以太坊区块链浏览器
(blockchain-explorer,The Ethereum-Block-Explorer)

文件列表:
app.js (1737, 2018-10-15)
app (0, 2018-10-15)
app\errors (0, 2018-10-15)
app\errors\clienterror.js (568, 2018-10-15)
app\errors\errordefinitions.js (530, 2018-10-15)
bin (0, 2018-10-15)
bin\www (1605, 2018-10-15)
config.js (144, 2018-10-15)
node_modules (0, 2018-10-15)
node_modules\.bin (0, 2018-10-15)
node_modules\.bin\acorn (301, 2018-10-15)
node_modules\.bin\acorn.cmd (172, 2018-10-15)
node_modules\.bin\cleancss (315, 2018-10-15)
node_modules\.bin\cleancss.cmd (186, 2018-10-15)
node_modules\.bin\jade (303, 2018-10-15)
node_modules\.bin\jade.cmd (174, 2018-10-15)
node_modules\.bin\mime (293, 2018-10-15)
node_modules\.bin\mime.cmd (164, 2018-10-15)
node_modules\.bin\mkdirp (305, 2018-10-15)
node_modules\.bin\mkdirp.cmd (176, 2018-10-15)
node_modules\.bin\uglifyjs (315, 2018-10-15)
node_modules\.bin\uglifyjs.cmd (186, 2018-10-15)
node_modules\accepts (0, 2018-10-15)
node_modules\accepts\HISTORY.md (4736, 2018-10-15)
node_modules\accepts\LICENSE (1167, 2018-10-15)
node_modules\accepts\index.js (5252, 2018-10-15)
node_modules\accepts\package.json (2280, 2018-10-15)
node_modules\acorn-globals (0, 2018-10-15)
node_modules\acorn-globals\LICENSE (1058, 2018-10-15)
node_modules\acorn-globals\index.js (5402, 2018-10-15)
node_modules\acorn-globals\package.json (1553, 2018-10-15)
node_modules\acorn (0, 2018-10-15)
node_modules\acorn\.editorconfig (99, 2018-10-15)
node_modules\acorn\.npmignore (25, 2018-10-15)
node_modules\acorn\.tern-project (63, 2018-10-15)
... ...

# ms [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) [![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/) Use this package to easily convert various time formats to milliseconds. ## Examples ```js ms('2 days') // 172800000 ms('1d') // 8***00000 ms('10h') // 36000000 ms('2.5 hrs') // 9000000 ms('2h') // 7200000 ms('1m') // 60000 ms('5s') // 5000 ms('1y') // 31557600000 ms('100') // 100 ``` ### Convert from milliseconds ```js ms(60000) // "1m" ms(2 * 60000) // "2m" ms(ms('10 hours')) // "10h" ``` ### Time format written-out ```js ms(60000, { long: true }) // "1 minute" ms(2 * 60000, { long: true }) // "2 minutes" ms(ms('10 hours'), { long: true }) // "10 hours" ``` ## Features - Works both in [node](https://nodejs.org) and in the browser. - If a number is supplied to `ms`, a string with a unit is returned. - If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`). - If you pass a string with a number and a valid unit, the number of equivalent ms is returned. ## Caught a bug? 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device 2. Link the package to the global module directory: `npm link` 3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms! As always, you can run the tests using: `npm test`

近期下载者

相关文件


收藏者