forked from enviPath/enviPy
Current Dev State
This commit is contained in:
5
static/js/ketcher2/node_modules/ternary/index.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/ternary/index.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function ternary (condition, expr1, expr2) {
|
||||
return condition + ' ? ' + expr1 + ' : ' + expr2
|
||||
}
|
||||
21
static/js/ketcher2/node_modules/ternary/license
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/ternary/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
||||
|
||||
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.
|
||||
60
static/js/ketcher2/node_modules/ternary/package.json
generated
vendored
Normal file
60
static/js/ketcher2/node_modules/ternary/package.json
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"_from": "ternary@~1.0.0",
|
||||
"_id": "ternary@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-RXAnJWCMlJnUapYQ6bDkn/JveJ4=",
|
||||
"_location": "/ternary",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "ternary@~1.0.0",
|
||||
"name": "ternary",
|
||||
"escapedName": "ternary",
|
||||
"rawSpec": "~1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/globo"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz",
|
||||
"_shasum": "45702725608c9499d46a9610e9b0e49ff26f789e",
|
||||
"_spec": "ternary@~1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/globo",
|
||||
"author": {
|
||||
"name": "Ben Drucker",
|
||||
"email": "bvdrucker@gmail.com",
|
||||
"url": "bendrucker.me"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bendrucker/ternary/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Build a ternary statement",
|
||||
"devDependencies": {
|
||||
"standard": "^4.0.0",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/bendrucker/ternary#readme",
|
||||
"keywords": [
|
||||
"ternary",
|
||||
"code",
|
||||
"js"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "ternary",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bendrucker/ternary.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
50
static/js/ketcher2/node_modules/ternary/readme.md
generated
vendored
Normal file
50
static/js/ketcher2/node_modules/ternary/readme.md
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# ternary [](https://travis-ci.org/bendrucker/ternary)
|
||||
|
||||
> Build a ternary statement
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save ternary
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var ternary = require('ternary')
|
||||
|
||||
ternary('condition', 'whenTruthy' : 'whenFalsy')
|
||||
//=> condition ? whenTruthy : whenFalsy
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
#### `ternary(condition, expr1, expr2)` -> `string`
|
||||
|
||||
##### condition
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
The ternary condition.
|
||||
|
||||
##### expr1
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
The expression to use when the condition is truthy.
|
||||
|
||||
##### expr2
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
The expression to use when the condition is falsy.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
||||
Reference in New Issue
Block a user