08-27-周三_17-09-29
This commit is contained in:
10
node_modules/boolbase/README.md
generated
vendored
Normal file
10
node_modules/boolbase/README.md
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#boolbase
|
||||
This very simple module provides two basic functions, one that always returns true (`trueFunc`) and one that always returns false (`falseFunc`).
|
||||
|
||||
###WTF?
|
||||
|
||||
By having only a single instance of these functions around, it's possible to do some nice optimizations. Eg. [`CSSselect`](https://github.com/fb55/CSSselect) uses these functions to determine whether a selector won't match any elements. If that's the case, the DOM doesn't even have to be touched.
|
||||
|
||||
###And why is this a separate module?
|
||||
|
||||
I'm trying to modularize `CSSselect` and most modules depend on these functions. IMHO, having a separate module is the easiest solution to this problem.
|
8
node_modules/boolbase/index.js
generated
vendored
Normal file
8
node_modules/boolbase/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
trueFunc: function trueFunc(){
|
||||
return true;
|
||||
},
|
||||
falseFunc: function falseFunc(){
|
||||
return false;
|
||||
}
|
||||
};
|
82
node_modules/boolbase/package.json
generated
vendored
Normal file
82
node_modules/boolbase/package.json
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"name": "boolbase",
|
||||
"raw": "boolbase@~1.0.0",
|
||||
"rawSpec": "~1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <1.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"F:\\tmp\\gitbook\\node_modules\\css-select"
|
||||
]
|
||||
],
|
||||
"_from": "boolbase@>=1.0.0 <1.1.0",
|
||||
"_id": "boolbase@1.0.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/boolbase",
|
||||
"_npmUser": {
|
||||
"email": "me@feedic.com",
|
||||
"name": "feedic"
|
||||
},
|
||||
"_npmVersion": "1.4.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "boolbase",
|
||||
"raw": "boolbase@~1.0.0",
|
||||
"rawSpec": "~1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <1.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/css-select",
|
||||
"/nth-check"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
||||
"_shasum": "68dff5fbe60c51eb37725ea9e3ed310dcc1e776e",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "boolbase@~1.0.0",
|
||||
"_where": "F:\\tmp\\gitbook\\node_modules\\css-select",
|
||||
"author": {
|
||||
"email": "me@feedic.com",
|
||||
"name": "Felix Boehm"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/fb55/boolbase/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "two functions: One that returns true, one that returns false",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "68dff5fbe60c51eb37725ea9e3ed310dcc1e776e",
|
||||
"tarball": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz"
|
||||
},
|
||||
"homepage": "https://github.com/fb55/boolbase",
|
||||
"keywords": [
|
||||
"boolean",
|
||||
"function"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"email": "me@feedic.com",
|
||||
"name": "feedic"
|
||||
}
|
||||
],
|
||||
"name": "boolbase",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/fb55/boolbase.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
Reference in New Issue
Block a user