Node_Project

所属分类:Node.js
开发工具:EJS
文件大小:6074KB
下载次数:0
上传日期:2022-08-25 12:10:55
上 传 者sh-1993
说明:  这个项目是为实践node而创建的,在这个节点中,我使用express my sql和node js创建了网店
(This project is created for practice of node in which i created online shop using express my sql and node js)

文件列表:
app.js (691, 2022-08-25)
controllers (0, 2022-08-25)
controllers\404.js (209, 2022-08-25)
controllers\admin.js (627, 2022-08-25)
controllers\shop.js (799, 2022-08-25)
data (0, 2022-08-25)
data\products.json (69, 2022-08-25)
models (0, 2022-08-25)
models\product.js (650, 2022-08-25)
node_modules (0, 2022-08-25)
node_modules\.bin (0, 2022-08-25)
node_modules\.bin\acorn (298, 2022-08-25)
node_modules\.bin\acorn.cmd (303, 2022-08-25)
node_modules\.bin\acorn.ps1 (785, 2022-08-25)
node_modules\.bin\babylon (312, 2022-08-25)
node_modules\.bin\babylon.cmd (310, 2022-08-25)
node_modules\.bin\babylon.ps1 (813, 2022-08-25)
node_modules\.bin\cleancss (312, 2022-08-25)
node_modules\.bin\cleancss.cmd (310, 2022-08-25)
node_modules\.bin\cleancss.ps1 (813, 2022-08-25)
node_modules\.bin\ejs (296, 2022-08-25)
node_modules\.bin\ejs.cmd (302, 2022-08-25)
node_modules\.bin\ejs.ps1 (781, 2022-08-25)
node_modules\.bin\jade (300, 2022-08-25)
node_modules\.bin\jade.cmd (304, 2022-08-25)
node_modules\.bin\jade.ps1 (789, 2022-08-25)
node_modules\.bin\jake (298, 2022-08-25)
node_modules\.bin\jake.cmd (303, 2022-08-25)
node_modules\.bin\jake.ps1 (785, 2022-08-25)
node_modules\.bin\mime (290, 2022-08-25)
node_modules\.bin\mime.cmd (299, 2022-08-25)
node_modules\.bin\mime.ps1 (769, 2022-08-25)
node_modules\.bin\mkdirp (302, 2022-08-25)
node_modules\.bin\mkdirp.cmd (305, 2022-08-25)
node_modules\.bin\mkdirp.ps1 (793, 2022-08-25)
node_modules\.bin\nodemon (312, 2022-08-25)
node_modules\.bin\nodemon.cmd (310, 2022-08-25)
node_modules\.bin\nodemon.ps1 (813, 2022-08-25)
node_modules\.bin\nodetouch (312, 2022-08-25)
... ...

# ms ![CI](https://github.com/vercel/ms/workflows/CI/badge.svg) 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 ms('-3 days') // -259200000 ms('-1h') // -3600000 ms('-200') // -200 ``` ### Convert from Milliseconds ```js ms(60000) // "1m" ms(2 * 60000) // "2m" ms(-3 * 60000) // "-3m" ms(ms('10 hours')) // "10h" ``` ### Time Format Written-Out ```js ms(60000, { long: true }) // "1 minute" ms(2 * 60000, { long: true }) // "2 minutes" ms(-3 * 60000, { long: true }) // "-3 minutes" ms(ms('10 hours'), { long: true }) // "10 hours" ``` ## Features - Works both in [Node.js](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 milliseconds is returned ## Related Packages - [ms.macro](https://github.com/knpwrs/ms.macro) - Run `ms` as a macro at build-time. ## 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.js will now use your clone of ms! As always, you can run the tests using: `npm test`

近期下载者

相关文件


收藏者