Tap-News-System

所属分类:后台框架
开发工具:JavaScript
文件大小:10360KB
下载次数:0
上传日期:2018-05-11 20:04:02
上 传 者sh-1993
说明:  React,快速,烧瓶。获取并推荐新闻
(React,Express,Flask. Get and recommend news)

文件列表:
common (0, 2018-05-12)
common\__pycache__ (0, 2018-05-12)
common\__pycache__\cloudAMQP_client.cpython-35.pyc (1640, 2018-05-12)
common\__pycache__\mongodb_client.cpython-35.pyc (455, 2018-05-12)
common\__pycache__\news_api_client.cpython-35.pyc (1036, 2018-05-12)
common\__pycache__\news_recommendation_service_client.cpython-35.pyc (495, 2018-05-12)
common\__pycache__\news_topic_modeling_service_client.cpython-35.pyc (439, 2018-05-12)
common\cloudAMQP_client.py (1360, 2018-05-12)
common\cloudAMQP_client.pyc (1723, 2018-05-12)
common\cloudAMQP_client_test.py (473, 2018-05-12)
common\mongodb_client.py (228, 2018-05-12)
common\mongodb_client.pyc (476, 2018-05-12)
common\mongodb_client_test.py (327, 2018-05-12)
common\news_api_client.py (1061, 2018-05-12)
common\news_api_client.pyc (1183, 2018-05-12)
common\news_api_client_test.py (301, 2018-05-12)
common\news_recommendation_service_client.py (248, 2018-05-12)
common\news_topic_modeling_service_client.py (194, 2018-05-12)
common\news_topic_modeling_service_client_test.py (278, 2018-05-12)
launcher.sh (285, 2018-05-12)
life cycle.PNG (339774, 2018-05-12)
log in.png (91183, 2018-05-12)
news pipeline.PNG (193847, 2018-05-12)
newsList.png (346589, 2018-05-12)
news_pipeline (0, 2018-05-12)
news_pipeline\news_deduper.py (2609, 2018-05-12)
news_pipeline\news_fetcher.py (1491, 2018-05-12)
news_pipeline\news_monitor.py (1753, 2018-05-12)
news_pipeline\queue_helper.py (1119, 2018-05-12)
news_pipeline\scrapers (0, 2018-05-12)
news_pipeline\scrapers\__pycache__ (0, 2018-05-12)
news_pipeline\scrapers\__pycache__\cnn_news_scraper.cpython-35.pyc (1261, 2018-05-12)
news_pipeline\scrapers\cnn_news_scraper.py (1015, 2018-05-12)
news_pipeline\scrapers\cnn_news_scraper_test.py (445, 2018-05-12)
news_pipeline\scrapers\user_agents.txt (18312, 2018-05-12)
news_pipeline\tf_idf_deduper_test_1.py (376, 2018-05-12)
news_pipeline_launcher.sh (382, 2018-05-12)
news_recommendation_service (0, 2018-05-12)
... ...

# 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`

近期下载者

相关文件


收藏者