Initial commit
commit
b7026e8c75
@ -0,0 +1 @@
|
||||
node_modules
|
@ -0,0 +1,5 @@
|
||||
# @validatem/match-special
|
||||
|
||||
Documentation for this module has not been written yet. By the time it reaches 1.0.0, it will have full documentation.
|
||||
|
||||
In the meantime, check out the `example.js` file in the repository for a usage demonstration.
|
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
const matchSpecial = require("./");
|
||||
const virtualProperty = require("@validatem/virtual-property");
|
||||
|
||||
let propertyA = "foo";
|
||||
let propertyB = virtualProperty("bar");
|
||||
|
||||
console.log(matchSpecial(propertyA)); // false
|
||||
console.log(matchSpecial(propertyB)); // true
|
||||
|
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function matchSpecial(value) {
|
||||
return (value != null && value.___validatem_isSpecial === true);
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "@validatem/match-special",
|
||||
"description": "Utility for checking whether something is a special (plumbing) object of some kind",
|
||||
"version": "0.1.0",
|
||||
"main": "index.js",
|
||||
"repository": "http://git.cryto.net/validatem/match-special.git",
|
||||
"author": "Sven Slootweg <admin@cryto.net>",
|
||||
"license": "WTFPL OR CC0-1.0",
|
||||
"devDependencies": {
|
||||
"@validatem/virtual-property": "^0.1.0"
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@validatem/virtual-property@^0.1.0":
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@validatem/virtual-property/-/virtual-property-0.1.0.tgz#880540dfd149f98ecf1095d93912e34443381fe4"
|
||||
integrity sha512-JUUvWtdqoSkOwlsl20oB3qFHYIL05a/TAfdY4AJcs55QeVTiX5iI1b8IoQW644sIWWooBuLv+XwoxjRsQFczlQ==
|
Loading…
Reference in New Issue