Initial commit
commit
f3ebe0a8e5
@ -0,0 +1 @@
|
||||
node_modules
|
@ -0,0 +1,5 @@
|
||||
# @validatem/match-virtual-property
|
||||
|
||||
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 matchVirtualProperty = require("./");
|
||||
const virtualProperty = require("@validatem/virtual-property");
|
||||
|
||||
let propertyA = virtualProperty("foo");
|
||||
let propertyB = "bar";
|
||||
|
||||
console.log(matchVirtualProperty(propertyA)); // true
|
||||
console.log(matchVirtualProperty(propertyB)); // false
|
||||
|
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
const createVersionedSpecialCheck = require("@validatem/match-versioned-special");
|
||||
|
||||
module.exports = createVersionedSpecialCheck({
|
||||
markerProperty: "___validatem_isVirtualProperty",
|
||||
versionProperty: "___validatem_virtualPropertyVersion",
|
||||
friendlyName: "a virtual property",
|
||||
expectedVersions: [ 1 ]
|
||||
});
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "@validatem/match-virtual-property",
|
||||
"description": "Utility for checking whether something is a virtual property",
|
||||
"version": "0.1.0",
|
||||
"main": "index.js",
|
||||
"repository": "http://git.cryto.net/validatem/match-virtual-property.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