Update to v13 and add queue and completely change code
This commit is contained in:
parent
dcef23d0ed
commit
55a38726a3
6706 changed files with 424137 additions and 61608 deletions
21
node_modules/boolstring/LICENSE
generated
vendored
Normal file
21
node_modules/boolstring/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 Kalan Dominick
|
||||
|
||||
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.
|
38
node_modules/boolstring/README.md
generated
vendored
Normal file
38
node_modules/boolstring/README.md
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
# boolString
|
||||
JavaScript library for converting a string into a boolean.
|
||||
|
||||
## Install
|
||||
Using NodeJs (via npm)
|
||||
```bash
|
||||
npm install --save boolstring
|
||||
```
|
||||
|
||||
Using Web Brwoser (via unpkg)
|
||||
```HTML
|
||||
<script src="https://unpkg.com/boolstring@1.0.1/index.js"></script>
|
||||
```
|
||||
|
||||
## Example
|
||||
```JavaScript
|
||||
var yesString = "yes";
|
||||
|
||||
console.log(boolString(yesString)); // true
|
||||
|
||||
var noString = "no";
|
||||
|
||||
console.log(boolString(noString)); // false
|
||||
```
|
||||
|
||||
## Supported Strings
|
||||
Contributions are welcome to add more strings. To start, create a pull request (preferred) or an issue.
|
||||
|
||||
* `true`
|
||||
* `yes`
|
||||
* `valid`
|
||||
* `on`
|
||||
* `enabled`
|
||||
* `enable`
|
||||
* `1`
|
||||
|
||||
## License
|
||||
boolString is licensed under the open source MIT license. View the [LICENSE](https://github.com/domkalan/boolString/blob/master/LICENSE) file for more information.
|
17
node_modules/boolstring/example.html
generated
vendored
Normal file
17
node_modules/boolstring/example.html
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="index.js"></script>
|
||||
<script>
|
||||
var yesString = "yes";
|
||||
|
||||
console.log(boolString(yesString)); // true
|
||||
|
||||
var noString = "no";
|
||||
|
||||
console.log(boolString(noString)); // false
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
9
node_modules/boolstring/example.js
generated
vendored
Normal file
9
node_modules/boolstring/example.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
var boolString = require('./index.js');
|
||||
|
||||
var yesString = "yes";
|
||||
|
||||
console.log(boolString(yesString)); // true
|
||||
|
||||
var noString = "no";
|
||||
|
||||
console.log(boolString(noString)); // false
|
7
node_modules/boolstring/index.js
generated
vendored
Normal file
7
node_modules/boolstring/index.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
var boolString = function(string) {
|
||||
return ['true', 'yes', 'enabled', 'enable', 'valid', 'on', '1'].includes(string.toLowerCase());
|
||||
}
|
||||
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = boolString;
|
||||
}
|
24
node_modules/boolstring/package.json
generated
vendored
Normal file
24
node_modules/boolstring/package.json
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "boolstring",
|
||||
"version": "1.0.2",
|
||||
"description": "JavaScript library for converting a string into a boolean.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/domkalan/boolString.git"
|
||||
},
|
||||
"keywords": [
|
||||
"bool",
|
||||
"string",
|
||||
"eval"
|
||||
],
|
||||
"author": "Kalan Dominick",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/domkalan/boolString/issues"
|
||||
},
|
||||
"homepage": "https://github.com/domkalan/boolString#readme"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue