forked from enviPath/enviPy
Current Dev State
This commit is contained in:
18
static/js/ketcher2/node_modules/right-now/LICENSE.md
generated
vendored
Normal file
18
static/js/ketcher2/node_modules/right-now/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
This software is released under the MIT license:
|
||||
|
||||
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.
|
||||
28
static/js/ketcher2/node_modules/right-now/README.md
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/right-now/README.md
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# right-now [](http://github.com/hughsk/stability-badges) #
|
||||
|
||||
Get the quickest, most high-resolution timestamp possible in node or the
|
||||
browser.
|
||||
|
||||
Instead of returning the date, `right-now` may use `performance.now`,
|
||||
`Date.now`, `+new Date` or `process.hrtime` to get a timestamp suitable for
|
||||
measuring intervals of time. Handy for both animation loops and precision
|
||||
benchmarking.
|
||||
|
||||
It's pretty small but saves me writing this boilerplate every time :)
|
||||
|
||||
## Installation ##
|
||||
|
||||
``` bash
|
||||
npm install right-now
|
||||
```
|
||||
|
||||
## Usage ##
|
||||
|
||||
### `require('right-now')()` ###
|
||||
|
||||
Returns a timestamp. In node, this uses `process.hrtime`. In the browser,
|
||||
support for the following is checked in this order:
|
||||
|
||||
* `performance.now()`
|
||||
* `Date.now()`
|
||||
* `+new Date`
|
||||
7
static/js/ketcher2/node_modules/right-now/browser.js
generated
vendored
Normal file
7
static/js/ketcher2/node_modules/right-now/browser.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports =
|
||||
global.performance &&
|
||||
global.performance.now ? function now() {
|
||||
return performance.now()
|
||||
} : Date.now || function now() {
|
||||
return +new Date
|
||||
}
|
||||
4
static/js/ketcher2/node_modules/right-now/index.js
generated
vendored
Normal file
4
static/js/ketcher2/node_modules/right-now/index.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = function now() {
|
||||
var time = process.hrtime()
|
||||
return time[0] * 1e3 + time[1] / 1e6
|
||||
}
|
||||
60
static/js/ketcher2/node_modules/right-now/package.json
generated
vendored
Normal file
60
static/js/ketcher2/node_modules/right-now/package.json
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"_from": "right-now@^1.0.0",
|
||||
"_id": "right-now@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-bolgne69fc2vja7Mmuo5z1haCRg=",
|
||||
"_location": "/right-now",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "right-now@^1.0.0",
|
||||
"name": "right-now",
|
||||
"escapedName": "right-now",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/garnish"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/right-now/-/right-now-1.0.0.tgz",
|
||||
"_shasum": "6e89609deebd7dcdaf8daecc9aea39cf585a0918",
|
||||
"_spec": "right-now@^1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/garnish",
|
||||
"author": {
|
||||
"name": "Hugh Kennedy",
|
||||
"email": "hughskennedy@gmail.com",
|
||||
"url": "http://hughskennedy.com/"
|
||||
},
|
||||
"browser": "browser.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/hughsk/right-now/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Get the quickest, most high-resolution timestamp possible in node or the browser",
|
||||
"homepage": "https://github.com/hughsk/right-now#readme",
|
||||
"keywords": [
|
||||
"time",
|
||||
"high",
|
||||
"resolution",
|
||||
"fast",
|
||||
"quick",
|
||||
"nanosecond",
|
||||
"millsecond",
|
||||
"performance",
|
||||
"now"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "right-now",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/hughsk/right-now.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "say sorry"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user