mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
# add dist
This commit is contained in:
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/LICENSE
generated
vendored
Normal file
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2016, Jon Schlinkert.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
121
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/README.md
generated
vendored
Normal file
121
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/README.md
generated
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
# time-stamp [](https://www.npmjs.com/package/time-stamp) [](https://npmjs.org/package/time-stamp) [](https://travis-ci.org/jonschlinkert/time-stamp)
|
||||
|
||||
> Get a formatted timestamp.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install time-stamp --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var timestamp = require('time-stamp');
|
||||
|
||||
timestamp();
|
||||
//=> '2015:04:01'
|
||||
|
||||
timestamp('YYYY:MM:DD');
|
||||
//=> '2015:04:01'
|
||||
|
||||
timestamp('[YYYY:MM:DD]');
|
||||
//=> '[2015:04:01]'
|
||||
|
||||
timestamp('YYYY/MM/DD');
|
||||
//=> '2015/04/01'
|
||||
|
||||
timestamp('YYYY:MM');
|
||||
//=> '2015:04'
|
||||
|
||||
timestamp('YYYY');
|
||||
//=> '2015'
|
||||
|
||||
timestamp('MM');
|
||||
//=> '04'
|
||||
|
||||
timestamp('DD');
|
||||
//=> '01'
|
||||
|
||||
timestamp('HH');
|
||||
//=> '01'
|
||||
|
||||
timestamp('mm');
|
||||
//=> '59'
|
||||
|
||||
timestamp('ss');
|
||||
//=> '09'
|
||||
|
||||
timestamp('ms');
|
||||
//=> '783'
|
||||
```
|
||||
|
||||
**Valid patterns**
|
||||
|
||||
* `YYYY`: full year (ex: **2015**)
|
||||
* `MM`: month (ex: **04**)
|
||||
* `DD`: day (ex: **01**)
|
||||
* `HH`: hours (ex: **12**)
|
||||
* `mm`: minutes (ex: **59**)
|
||||
* `ss`: seconds (ex: **09**)
|
||||
* `ms`: milliseconds (ex: **532**)
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
* [days](https://www.npmjs.com/package/days): Days of the week. | [homepage](https://github.com/jonschlinkert/days)
|
||||
* [iso-week](https://www.npmjs.com/package/iso-week): Get the ISO week of the year. | [homepage](https://github.com/jonschlinkert/iso-week)
|
||||
* [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)
|
||||
* [months](https://www.npmjs.com/package/months): Months of the year. | [homepage](https://github.com/jonschlinkert/months)
|
||||
* [o-clock](https://www.npmjs.com/package/o-clock): Simple utility for displaying the time in 12-hour clock format. | [homepage](https://github.com/jonschlinkert/o-clock)
|
||||
* [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)
|
||||
* [week](https://www.npmjs.com/package/week): Get the current week number. | [homepage](https://github.com/jonschlinkert/week)
|
||||
* [weekday](https://www.npmjs.com/package/weekday): Get the name and number of the current weekday. Or get the name of the… [more](https://www.npmjs.com/package/weekday) | [homepage](https://github.com/jonschlinkert/weekday)
|
||||
* [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)
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/time-stamp/issues/new).
|
||||
|
||||
## Building docs
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install verb && npm run docs
|
||||
```
|
||||
|
||||
Or, if [verb](https://github.com/verbose/verb) is installed globally:
|
||||
|
||||
```sh
|
||||
$ verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
Follow me on GitHub or Twitter for updates about time-stamp and my other libraries:
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/time-stamp/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v, on April 07, 2016._
|
47
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/index.js
generated
vendored
Normal file
47
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/index.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
/*!
|
||||
* time-stamp <https://github.com/jonschlinkert/time-stamp>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Parse the given pattern and return a formatted
|
||||
* timestamp.
|
||||
*
|
||||
* @param {String} `pattern` Date pattern.
|
||||
* @param {Date} `date` Date object.
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
module.exports = function timestamp(pattern, date) {
|
||||
if (typeof pattern !== 'string') {
|
||||
date = pattern;
|
||||
pattern = 'YYYY:MM:DD';
|
||||
}
|
||||
date = date || new Date();
|
||||
return pattern.replace(/([YMDHms]{2,4})(:\/)?/g, function(_, key, sep) {
|
||||
var increment = method(key);
|
||||
if (!increment) return _;
|
||||
sep = sep || '';
|
||||
|
||||
var res = '00' + String(date[increment[0]]() + (increment[2] || 0));
|
||||
return res.slice(-increment[1]) + sep;
|
||||
});
|
||||
};
|
||||
|
||||
function method(key) {
|
||||
return ({
|
||||
YYYY: ['getFullYear', 4],
|
||||
YY: ['getFullYear', 2],
|
||||
// getMonth is zero-based, thus the extra increment field
|
||||
MM: ['getMonth', 2, 1],
|
||||
DD: ['getDate', 2],
|
||||
HH: ['getHours', 2],
|
||||
mm: ['getMinutes', 2],
|
||||
ss: ['getSeconds', 2],
|
||||
ms: ['getMilliseconds', 3]
|
||||
})[key];
|
||||
}
|
128
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/package.json
generated
vendored
Normal file
128
ng2-components/ng2-alfresco-documentslist/dist/node_modules/time-stamp/package.json
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"time-stamp@^1.0.0",
|
||||
"/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/fancy-log"
|
||||
]
|
||||
],
|
||||
"_from": "time-stamp@>=1.0.0 <2.0.0",
|
||||
"_id": "time-stamp@1.0.1",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/time-stamp",
|
||||
"_nodeVersion": "5.5.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/time-stamp-1.0.1.tgz_1460014127254_0.9380003691185266"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "github@sellside.com",
|
||||
"name": "jonschlinkert"
|
||||
},
|
||||
"_npmVersion": "3.6.0",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "time-stamp",
|
||||
"raw": "time-stamp@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/fancy-log"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.0.1.tgz",
|
||||
"_shasum": "9f4bd23559c9365966f3302dbba2b07c6b99b151",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "time-stamp@^1.0.0",
|
||||
"_where": "/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/fancy-log",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/time-stamp/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Get a formatted timestamp.",
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.7",
|
||||
"mocha": "^2.4.5",
|
||||
"pad-left": "^2.0.3"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "9f4bd23559c9365966f3302dbba2b07c6b99b151",
|
||||
"tarball": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.0.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "66fc623cf26a5f85fe22a6a7acc91568cddf301c",
|
||||
"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": [
|
||||
{
|
||||
"email": "github@sellside.com",
|
||||
"name": "jonschlinkert"
|
||||
}
|
||||
],
|
||||
"name": "time-stamp",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/time-stamp.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"layout": "default",
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"reflinks": [
|
||||
"verb"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"days",
|
||||
"iso-week",
|
||||
"month",
|
||||
"months",
|
||||
"o-clock",
|
||||
"seconds",
|
||||
"week",
|
||||
"weekday",
|
||||
"year"
|
||||
]
|
||||
},
|
||||
"run": true,
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"toc": false
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
Reference in New Issue
Block a user