{ "_args": [ [ { "raw": "time-stamp@^1.0.0", "scope": null, "escapedName": "time-stamp", "name": "time-stamp", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/fancy-log" ] ], "_from": "time-stamp@>=1.0.0 <2.0.0", "_id": "time-stamp@1.1.0", "_inCache": true, "_location": "/time-stamp", "_nodeVersion": "7.7.3", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/time-stamp-1.1.0.tgz_1494809609879_0.2116724606603384" }, "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "_npmVersion": "4.5.0", "_phantomChildren": {}, "_requested": { "raw": "time-stamp@^1.0.0", "scope": null, "escapedName": "time-stamp", "name": "time-stamp", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/fancy-log" ], "_resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", "_shasum": "764a5a11af50561921b133f3b44e618687e0f5c3", "_shrinkwrap": null, "_spec": "time-stamp@^1.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/fancy-log", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/time-stamp/issues" }, "contributors": [ { "name": "Daniel Stockman", "url": "http://evocateur.org" }, { "name": "Drew", "url": "https://github.com/mendenhallmagic" }, { "name": "Jon Schlinkert", "url": "http://twitter.com/jonschlinkert" } ], "dependencies": {}, "description": "Get a formatted timestamp.", "devDependencies": { "gulp-format-md": "^0.1.12", "mocha": "^3.4.1", "pad-left": "^2.1.0" }, "directories": {}, "dist": { "shasum": "764a5a11af50561921b133f3b44e618687e0f5c3", "tarball": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "30533a5f71944f368b3b1ccaedd895a26b6c5bff", "homepage": "https://github.com/jonschlinkert/time-stamp", "keywords": [ "console", "date", "format", "formatting", "log", "pretty", "stamp", "terminal", "time", "time-stamp" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "name": "time-stamp", "optionalDependencies": {}, "readme": "# time-stamp [![NPM version](https://img.shields.io/npm/v/time-stamp.svg?style=flat)](https://www.npmjs.com/package/time-stamp) [![NPM monthly downloads](https://img.shields.io/npm/dm/time-stamp.svg?style=flat)](https://npmjs.org/package/time-stamp) [![NPM total downloads](https://img.shields.io/npm/dt/time-stamp.svg?style=flat)](https://npmjs.org/package/time-stamp) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/time-stamp.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/time-stamp)\n\n> Get a formatted timestamp.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save time-stamp\n```\n\n## Usage\n\n```js\nvar timestamp = require('time-stamp');\n\ntimestamp();\n//=> 2017:05:14\n\ntimestamp('YYYYMMDD');\n//=> 20170514\n\ntimestamp('YYYYMMDD:ss');\n//=> 20170514:26\n\ntimestamp('YYYY/MM/DD:mm:ss');\n//=> 2017/05/14:52:26\n\ntimestamp('YYYY:MM:DD');\n//=> 2017:05:14\n\ntimestamp('[YYYY:MM:DD]');\n//=> [2017:05:14]\n\ntimestamp('YYYY/MM/DD');\n//=> 2017/05/14\n\ntimestamp('YYYY:MM');\n//=> 2017:05\n\ntimestamp('YYYY');\n//=> 2017\n\ntimestamp('MM');\n//=> 05\n\ntimestamp('DD');\n//=> 14\n\ntimestamp('HH');\n//=> 20\n\ntimestamp('mm');\n//=> 52\n\ntimestamp('ss');\n//=> 26\n\ntimestamp('ms');\n//=> 481\n```\n\n**Valid patterns**\n\n* `YYYY`: full year (ex: **2017**)\n* `MM`: month (ex: **04**)\n* `DD`: day (ex: **01**)\n* `HH`: hours (ex: **12**)\n* `mm`: minutes (ex: **59**)\n* `ss`: seconds (ex: **09**)\n* `ms`: milliseconds (ex: **532**)\n\n## About\n\n### Related projects\n\n* [days](https://www.npmjs.com/package/days): Days of the week. | [homepage](https://github.com/jonschlinkert/days \"Days of the week.\")\n* [iso-week](https://www.npmjs.com/package/iso-week): Get the ISO week of the year. | [homepage](https://github.com/jonschlinkert/iso-week \"Get the ISO week of the year.\")\n* [month](https://www.npmjs.com/package/month): Get the name or number of the current month or any month of the year. | [homepage](https://github.com/datetime/month \"Get the name or number of the current month or any month of the year.\")\n* [months](https://www.npmjs.com/package/months): Months of the year. | [homepage](https://github.com/jonschlinkert/months \"Months of the year.\")\n* [o-clock](https://www.npmjs.com/package/o-clock): Simple javascript utility for displaying the time in 12-hour clock format. | [homepage](https://github.com/jonschlinkert/o-clock \"Simple javascript utility for displaying the time in 12-hour clock format.\")\n* [seconds](https://www.npmjs.com/package/seconds): Get the number of seconds for a minute, hour, day and week. | [homepage](https://github.com/jonschlinkert/seconds \"Get the number of seconds for a minute, hour, day and week.\")\n* [week](https://www.npmjs.com/package/week): Get the current week number. | [homepage](https://github.com/datetime/week \"Get the current week number.\")\n* [weekday](https://www.npmjs.com/package/weekday): Get the name and number of the current weekday. Or get the name of the… [more](https://github.com/datetime/weekday) | [homepage](https://github.com/datetime/weekday \"Get the name and number of the current weekday. Or get the name of the weekday for a given number.\")\n* [year](https://www.npmjs.com/package/year): Simple utility to get the current year with 2 or 4 digits. | [homepage](https://github.com/jonschlinkert/year \"Simple utility to get the current year with 2 or 4 digits.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 21 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [evocateur](https://github.com/evocateur) |\n| 1 | [mendenhallmagic](https://github.com/mendenhallmagic) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 14, 2017._", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/time-stamp.git" }, "scripts": { "test": "mocha" }, "verb": { "run": true, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "helpers": { "timestamp": "./index.js" }, "related": { "list": [ "days", "iso-week", "month", "months", "o-clock", "seconds", "week", "weekday", "year" ] }, "reflinks": [ "verb" ], "lint": { "reflinks": true } }, "version": "1.1.0" }