motion
Version:
motion - moving development forward
81 lines (80 loc) • 4.79 kB
JSON
{
"_args": [
[
"dateformat@https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "dateformat@>=1.0.11 <2.0.0",
"_id": "dateformat@1.0.12",
"_inCache": true,
"_location": "/dateformat",
"_phantomChildren": {},
"_requested": {
"name": "dateformat",
"raw": "dateformat@https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"rawSpec": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"type": "remote"
},
"_requiredBy": [
"/fancy-log",
"/gulp-util"
],
"_resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"_shasum": "9f124b67594c937ff706932e4a642cca8dbbfee9",
"_shrinkwrap": null,
"_spec": "dateformat@https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Steven Levithan"
},
"bin": {
"dateformat": "bin/cli.js"
},
"bugs": {
"url": "https://github.com/felixge/node-dateformat/issues"
},
"contributors": [
{
"name": "Steven Levithan"
},
{
"name": "Felix Geisendörfer",
"email": "felix@debuggable.com"
},
{
"name": "Christoph Tavan",
"email": "dev@tavan.de"
}
],
"dependencies": {
"get-stdin": "^4.0.1",
"meow": "^3.3.0"
},
"description": "A node.js package for Steven Levithan's excellent dateFormat() function.",
"devDependencies": {
"mocha": "2.0.1",
"underscore": "1.7.0"
},
"engines": {
"node": "*"
},
"homepage": "https://github.com/felixge/node-dateformat",
"license": "MIT",
"main": "lib/dateformat",
"maintainers": "Felix Geisendörfer <felix@debuggable.com>",
"name": "dateformat",
"optionalDependencies": {},
"readme": "# dateformat\n\nA node.js package for Steven Levithan's excellent [dateFormat()][dateformat] function.\n\n[](https://travis-ci.org/felixge/node-dateformat)\n\n## Modifications\n\n* Removed the `Date.prototype.format` method. Sorry folks, but extending native prototypes is for suckers.\n* Added a `module.exports = dateFormat;` statement at the bottom\n* Added the placeholder `N` to get the ISO 8601 numeric representation of the day of the week\n\n## Installation\n\n```bash\n$ npm install dateformat\n$ dateformat --help\n```\n\n## Usage\n\nAs taken from Steven's post, modified to match the Modifications listed above:\n```js\n var dateFormat = require('dateformat');\n var now = new Date();\n\n // Basic usage\n dateFormat(now, \"dddd, mmmm dS, yyyy, h:MM:ss TT\");\n // Saturday, June 9th, 2007, 5:46:21 PM\n\n // You can use one of several named masks\n dateFormat(now, \"isoDateTime\");\n // 2007-06-09T17:46:21\n\n // ...Or add your own\n dateFormat.masks.hammerTime = 'HH:MM! \"Can\\'t touch this!\"';\n dateFormat(now, \"hammerTime\");\n // 17:46! Can't touch this!\n\n // When using the standalone dateFormat function,\n // you can also provide the date as a string\n dateFormat(\"Jun 9 2007\", \"fullDate\");\n // Saturday, June 9, 2007\n\n // Note that if you don't include the mask argument,\n // dateFormat.masks.default is used\n dateFormat(now);\n // Sat Jun 09 2007 17:46:21\n\n // And if you don't include the date argument,\n // the current date and time is used\n dateFormat();\n // Sat Jun 09 2007 17:46:22\n\n // You can also skip the date argument (as long as your mask doesn't\n // contain any numbers), in which case the current date/time is used\n dateFormat(\"longTime\");\n // 5:46:22 PM EST\n\n // And finally, you can convert local time to UTC time. Simply pass in\n // true as an additional argument (no argument skipping allowed in this case):\n dateFormat(now, \"longTime\", true);\n // 10:46:21 PM UTC\n\n // ...Or add the prefix \"UTC:\" or \"GMT:\" to your mask.\n dateFormat(now, \"UTC:h:MM:ss TT Z\");\n // 10:46:21 PM UTC\n\n // You can also get the ISO 8601 week of the year:\n dateFormat(now, \"W\");\n // 42\n\n // and also get the ISO 8601 numeric representation of the day of the week:\n dateFormat(now,\"N\");\n // 6\n```\n## License\n\n(c) 2007-2009 Steven Levithan [stevenlevithan.com][stevenlevithan], MIT license.\n\n[dateformat]: http://blog.stevenlevithan.com/archives/date-time-format\n[stevenlevithan]: http://stevenlevithan.com/\n",
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/felixge/node-dateformat.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.12"
}