{"_id":"formats","_rev":"326879","name":"formats","description":"formats is a collection of validators.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"time":{"modified":"2021-06-07T02:44:56.000Z","created":"2014-10-23T19:19:52.474Z","1.0.0":"2018-02-08T18:19:41.971Z","0.5.5":"2017-02-23T09:57:47.941Z","0.5.4":"2016-05-31T08:00:43.489Z","0.5.3":"2016-04-26T07:21:56.144Z","0.5.2":"2015-11-03T19:50:47.857Z","0.5.1":"2015-11-02T22:06:02.674Z","0.5.0":"2015-11-02T22:03:27.780Z","0.4.0":"2015-06-23T20:19:24.389Z","0.2.0":"2014-12-17T22:27:43.915Z","0.1.1":"2014-12-16T08:26:13.921Z","0.1.0":"2014-12-14T19:55:36.399Z","0.0.11":"2014-11-14T08:25:12.911Z","0.0.10":"2014-11-11T08:12:37.337Z","0.0.9":"2014-10-28T19:33:28.111Z","0.0.8":"2014-10-28T18:44:42.074Z","0.0.7":"2014-10-28T18:08:48.136Z","0.0.6":"2014-10-28T17:56:24.725Z","0.0.5":"2014-10-28T17:54:57.057Z","0.0.4":"2014-10-28T17:52:02.251Z","0.0.3":"2014-10-25T11:02:50.537Z","0.0.2":"2014-10-23T20:13:04.163Z","0.0.1":"2014-10-23T19:19:52.474Z"},"users":{},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"versions":{"1.0.0":{"name":"formats","version":"1.0.0","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"dist/formats.js","dependencies":{},"devDependencies":{"assertthat":"1.0.0","roboter":"0.15.6","roboter-server":"0.15.6"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"42456736d404d0782523481d744e2f72f8c7fd84","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"327154084786eac09d3b839cab28d150b982b163","size":10132,"noattachment":false,"key":"/formats/-/formats-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-1.0.0.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formats_1.0.0_1518113981195_0.5334582982621352"},"_hasShrinkwrap":false,"publish_time":1518113981971,"_cnpm_publish_time":1518113981971},"0.5.5":{"name":"formats","version":"0.5.5","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"dist/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.8.3","roboter":"0.14.6","roboter-server":"0.14.6"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"ecab723126c2474c8a4817d515cd1c44388510ed","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.5","scripts":{},"_shasum":"a08023e4f666653a80baf5290491fabe5dc67294","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"a08023e4f666653a80baf5290491fabe5dc67294","size":10347,"noattachment":false,"key":"/formats/-/formats-0.5.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.5.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/formats-0.5.5.tgz_1487843865895_0.42177769518457353"},"directories":{},"publish_time":1487843867941,"_cnpm_publish_time":1487843867941,"_hasShrinkwrap":false},"0.5.4":{"name":"formats","version":"0.5.4","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.7.0","roboter":"0.7.1"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"0b57699d2806efe9077465166df4393277748ac8","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.4","scripts":{},"_shasum":"e3ebe9b451abaf1395575966be6a48172b0f52f2","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"e3ebe9b451abaf1395575966be6a48172b0f52f2","size":8932,"noattachment":false,"key":"/formats/-/formats-0.5.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.4.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/formats-0.5.4.tgz_1464681641225_0.4717143049929291"},"directories":{},"publish_time":1464681643489,"_cnpm_publish_time":1464681643489,"_hasShrinkwrap":false},"0.5.3":{"name":"formats","version":"0.5.3","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.6.0","gulp":"3.9.1","roboter":"0.5.1"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"666b7677585b0b483efce1d5a2dcb1d53b6e475f","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.3","scripts":{},"_shasum":"c0c0366732ca44227e7f288cd00d8397e785a09a","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"c0c0366732ca44227e7f288cd00d8397e785a09a","size":8645,"noattachment":false,"key":"/formats/-/formats-0.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.3.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/formats-0.5.3.tgz_1461655314099_0.8417033513542265"},"directories":{},"publish_time":1461655316144,"_cnpm_publish_time":1461655316144,"_hasShrinkwrap":false},"0.5.2":{"name":"formats","version":"0.5.2","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.6.0","gulp":"3.9.0","roboter":"0.3.5"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"25694ac72f428fd678922bfcd999a37e3d8b88cb","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.2","scripts":{},"_shasum":"f285b1cb631aa8cdc55b20ed484fe5a20ca8fd5e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"f285b1cb631aa8cdc55b20ed484fe5a20ca8fd5e","size":8570,"noattachment":false,"key":"/formats/-/formats-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.2.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"publish_time":1446580247857,"_cnpm_publish_time":1446580247857,"_hasShrinkwrap":false},"0.5.1":{"name":"formats","version":"0.5.1","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.6.0","gulp":"3.9.0","roboter":"0.3.5"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"2c7a9cb3b53647125c2a3a7f2265d51bbee8592a","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.1","scripts":{},"_shasum":"c958e6c843738637b4cc59edce9c9fef77d8a0bc","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"c958e6c843738637b4cc59edce9c9fef77d8a0bc","size":8516,"noattachment":false,"key":"/formats/-/formats-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.1.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"publish_time":1446501962674,"_cnpm_publish_time":1446501962674,"_hasShrinkwrap":false},"0.5.0":{"name":"formats","version":"0.5.0","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.6.0","gulp":"3.9.0","roboter":"0.3.5"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"d0048fa9ddf126d9ea018ea4fddd54e7561307eb","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.5.0","scripts":{},"_shasum":"6f8c1f08e6965dd64abbebaf3a8659126ffca971","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"6f8c1f08e6965dd64abbebaf3a8659126ffca971","size":8525,"noattachment":false,"key":"/formats/-/formats-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.5.0.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"publish_time":1446501807780,"_cnpm_publish_time":1446501807780,"_hasShrinkwrap":false},"0.4.0":{"name":"formats","version":"0.4.0","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"assertthat":"0.6.0","grunt":"0.4.5","tourism":"0.19.0"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"keywords":["format","validator"],"license":"MIT","gitHead":"73858f9644710b018355d2cbbc35fb955cba623a","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats#readme","_id":"formats@0.4.0","scripts":{},"_shasum":"068bee52a1f312bb1f4f96387816976aeb907e30","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"dist":{"shasum":"068bee52a1f312bb1f4f96387816976aeb907e30","size":8536,"noattachment":false,"key":"/formats/-/formats-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.4.0.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"publish_time":1435090764389,"_cnpm_publish_time":1435090764389,"_hasShrinkwrap":false},"0.2.0":{"name":"formats","version":"0.2.0","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.3","tourism":"0.10.1"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"133d6792e830cbd60c1b743aec5182ae2905b3f3","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.2.0","scripts":{},"_shasum":"c2232377f48672b616d9a76e766cb1ac7b21de1b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"c2232377f48672b616d9a76e766cb1ac7b21de1b","size":6872,"noattachment":false,"key":"/formats/-/formats-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.2.0.tgz"},"directories":{},"publish_time":1418855263915,"_cnpm_publish_time":1418855263915,"_hasShrinkwrap":false},"0.1.1":{"name":"formats","version":"0.1.1","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.3","tourism":"0.10.1"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"7c4acf8e43c963d1fce2f3f93a2088c1611c9da5","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.1.1","scripts":{},"_shasum":"1a159e02d1ec9dffe91679c47812d7fe9b581639","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"1a159e02d1ec9dffe91679c47812d7fe9b581639","size":5732,"noattachment":false,"key":"/formats/-/formats-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.1.1.tgz"},"directories":{},"publish_time":1418718373921,"_cnpm_publish_time":1418718373921,"_hasShrinkwrap":false},"0.1.0":{"name":"formats","version":"0.1.0","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.3","tourism":"0.10.1"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"ff158e3569e10e9ed4e1488482cc88820e4c42a2","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.1.0","scripts":{},"_shasum":"8c04cd117cddc236c2f40cfd49382f8fe7836b68","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"8c04cd117cddc236c2f40cfd49382f8fe7836b68","size":5478,"noattachment":false,"key":"/formats/-/formats-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.1.0.tgz"},"directories":{},"publish_time":1418586936399,"_cnpm_publish_time":1418586936399,"_hasShrinkwrap":false},"0.0.11":{"name":"formats","version":"0.0.11","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.2","tourism":"0.9.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"77867fe71984393602d8d65039b10ef8c06677c2","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.11","scripts":{},"_shasum":"46cebd17d284bbb2222119f563880a8bf8fcc0ba","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"46cebd17d284bbb2222119f563880a8bf8fcc0ba","size":4708,"noattachment":false,"key":"/formats/-/formats-0.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.11.tgz"},"directories":{},"publish_time":1415953512911,"_cnpm_publish_time":1415953512911,"_hasShrinkwrap":false},"0.0.10":{"name":"formats","version":"0.0.10","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.2","tourism":"0.9.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"90e121eef3aaad774738c926a8ff5a37668d2489","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.10","scripts":{},"_shasum":"80e6a44bbd613e9a3c4700ca64b17073092d2c99","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"80e6a44bbd613e9a3c4700ca64b17073092d2c99","size":4544,"noattachment":false,"key":"/formats/-/formats-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.10.tgz"},"directories":{},"publish_time":1415693557337,"_cnpm_publish_time":1415693557337,"_hasShrinkwrap":false},"0.0.9":{"name":"formats","version":"0.0.9","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"16e3b0cb3767facc72c578252b4b928c461a2f35","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.9","scripts":{},"_shasum":"420060998a6c5512a22774bd81fdc5dedfb40acf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"420060998a6c5512a22774bd81fdc5dedfb40acf","size":4224,"noattachment":false,"key":"/formats/-/formats-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.9.tgz"},"directories":{},"publish_time":1414524808111,"_cnpm_publish_time":1414524808111,"_hasShrinkwrap":false},"0.0.8":{"name":"formats","version":"0.0.8","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"ac5682daf6eb2c281c8431d6d38817ce33a56d31","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.8","scripts":{},"_shasum":"f458d7b6a9203d796a9cfb10aff563684f00bf7a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"f458d7b6a9203d796a9cfb10aff563684f00bf7a","size":3933,"noattachment":false,"key":"/formats/-/formats-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.8.tgz"},"directories":{},"publish_time":1414521882074,"_cnpm_publish_time":1414521882074,"_hasShrinkwrap":false},"0.0.7":{"name":"formats","version":"0.0.7","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"5ddf58ba087d3c8430f3a22c3244c2e515b8dc04","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.7","scripts":{},"_shasum":"f0be2463620c77b88ede9d1106db2d1f9cbe83c3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"f0be2463620c77b88ede9d1106db2d1f9cbe83c3","size":3770,"noattachment":false,"key":"/formats/-/formats-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.7.tgz"},"directories":{},"publish_time":1414519728136,"_cnpm_publish_time":1414519728136,"_hasShrinkwrap":false},"0.0.6":{"name":"formats","version":"0.0.6","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"3396fd462b0baae67a935ba7d2f6b6925eeb72e1","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.6","scripts":{},"_shasum":"64b8547e69cdc6d2f131848a55cf0780d4d32b7f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"64b8547e69cdc6d2f131848a55cf0780d4d32b7f","size":3675,"noattachment":false,"key":"/formats/-/formats-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.6.tgz"},"directories":{},"publish_time":1414518984725,"_cnpm_publish_time":1414518984725,"_hasShrinkwrap":false},"0.0.5":{"name":"formats","version":"0.0.5","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"1141609b139344f7497bad5927eb8009bd6ba310","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.5","scripts":{},"_shasum":"2433f01adb8c58a6962ca242115be8457f77aed0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"2433f01adb8c58a6962ca242115be8457f77aed0","size":3563,"noattachment":false,"key":"/formats/-/formats-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.5.tgz"},"directories":{},"publish_time":1414518897057,"_cnpm_publish_time":1414518897057,"_hasShrinkwrap":false},"0.0.4":{"name":"formats","version":"0.0.4","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.8.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"6327f5dd11a3085a7a58e5a3a781fb5ac17924b1","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.4","scripts":{},"_shasum":"6ec615767fb5dd731e966415a4326dcb66b73ac8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"6ec615767fb5dd731e966415a4326dcb66b73ac8","size":3457,"noattachment":false,"key":"/formats/-/formats-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.4.tgz"},"directories":{},"publish_time":1414518722251,"_cnpm_publish_time":1414518722251,"_hasShrinkwrap":false},"0.0.3":{"name":"formats","version":"0.0.3","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.7.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"02635606cf5647936c6b84cea111386ce573f40e","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.3","scripts":{},"_shasum":"aec6543fb7f71e581a22a6c23c589302dc770c5a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"aec6543fb7f71e581a22a6c23c589302dc770c5a","size":3246,"noattachment":false,"key":"/formats/-/formats-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.3.tgz"},"directories":{},"publish_time":1414234970537,"_cnpm_publish_time":1414234970537,"_hasShrinkwrap":false},"0.0.2":{"name":"formats","version":"0.0.2","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.7.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"ef8989031994e6c09dbd9b0b1457fc027d54abb2","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.2","scripts":{},"_shasum":"73a3fdd83c402327fb9819cb4052a060741404ce","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"73a3fdd83c402327fb9819cb4052a060741404ce","size":2805,"noattachment":false,"key":"/formats/-/formats-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.2.tgz"},"directories":{},"publish_time":1414095184163,"_cnpm_publish_time":1414095184163,"_hasShrinkwrap":false},"0.0.1":{"name":"formats","version":"0.0.1","description":"formats is a collection of validators.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/formats.js","dependencies":{"require-all":"0.0.8"},"devDependencies":{"grunt":"0.4.5","node-assertthat":"0.2.1","tourism":"0.7.3"},"repository":{"type":"git","url":"git://github.com/thenativeweb/formats.git"},"license":"MIT","gitHead":"dfdc1eed09edfad99cae842fd9e6b0f0ce7abfeb","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"homepage":"https://github.com/thenativeweb/formats","_id":"formats@0.0.1","scripts":{},"_shasum":"4466bfc32a15749d3957d359e9b7f739f30021ba","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thenativeweb","email":"hello@thenativeweb.io"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"dist":{"shasum":"4466bfc32a15749d3957d359e9b7f739f30021ba","size":2503,"noattachment":false,"key":"/formats/-/formats-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formats/download/formats-0.0.1.tgz"},"directories":{},"publish_time":1414091992474,"_cnpm_publish_time":1414091992474,"_hasShrinkwrap":false}},"readme":"# formats\n\nformats is a collection of validators.\n\n## Installation\n\n```shell\n$ npm install formats\n```\n\n## Quick start\n\nFirst you need to add a reference to formats in your application.\n\n```javascript\nconst formats = require('formats');\n```\n\n### Validating values\n\nBasically, to validate a value you need to call the appropriate function on the `formats` object, e.g. `string`. The result is a validator function that you can re-use multiple times.\n\n```javascript\nconst stringValidator = formats.string();\nconsole.log(stringValidator('foobar')); // => true\n```\n\nSome validators are customizable. For that provide an `options` object when requesting the validator.\n\n```javascript\nconst stringValidator = formats.string({ minLength: 7 });\nconsole.log(stringValidator('foobar')); // => false\n```\n\n#### Working with default values\n\nFrom time to time you may be interested in the actual value instead of a boolean (or a default value in case of an invalid value). In these cases, specify the `default` option.\n\n```javascript\nconst stringValidator = formats.string({ minLength: 7, default: 'formats' });\nconsole.log(stringValidator('foobarbaz')); // => 'foobarbaz'\nconsole.log(stringValidator('foobar'));    // => 'formats'\n```\n\nAlthough not explicitly described below, the `default` option is available for every validator.\n\n### Using built-in validators\n\n#### alphanumeric\n\nValidates that a value is of type `string` that contains only alphanumeric characters.\n\n##### Options\n\n- `minLength`: Validates that a value is at least `n` characters long.\n- `maxLength`: Validates that a value is at most `n` characters long.\n\n##### Sample\n\n```javascript\nconst validator = formats.alphanumeric({\n  minLength: 5,\n  maxLength: 23\n});\n```\n\n#### boolean\n\nValidates that a value is of type `boolean`.\n\n##### Sample\n\n```javascript\nconst validator = formats.boolean();\n```\n\n#### date\n\nValidates that a value is of type `Date`.\n\n##### Options\n\n- `min`: Validates that a value is later than `n`.\n- `max`: Validates that a value is earlier than `n`.\n\n##### Sample\n\n```javascript\nconst validator = formats.date({\n  min: new Date(2015, 0, 1),\n  max: new Date(2015, 11, 31)\n});\n```\n\n#### email\n\nValidates that a value is an email address, according to the [W3C HTML5 specification](http://www.w3.org/TR/html5/forms.html#valid-e-mail-address).\n\n##### Sample\n\n```javascript\nconst validator = formats.email();\n```\n\n#### function\n\nValidates that a value is of type `function`.\n\n##### Sample\n\n```javascript\nconst validator = formats.function();\n```\n\n#### ip\n\nValidates that a value is an ip address.\n\n##### Options\n\n- `version`: Validates that a value is a version `4` or version `6` address.\n\n##### Sample\n\n```javascript\nconst validator = formats.ip({\n  version: 4\n});\n```\n\n#### mac\n\nValidates that a value is a MAC address, according to the IEEE 802 standard.\n\n##### Sample\n\n```javascript\nconst validator = formats.mac();\n```\n\n#### number\n\nValidates that a value is of type `number`.\n\n##### Options\n\n- `isInteger`: Validates that a value is an integer.\n- `min`: Validates that a value is at least `n`.\n- `max`: Validates that a value is at most `n`.\n\n##### Sample\n\n```javascript\nconst validator = formats.number({\n  isInteger: true,\n  min: 5,\n  max: 23\n});\n```\n\n#### object\n\nValidates that a value is of type `object`.\n\n##### Options\n\n- `isOptional`: Validates that a value may be `null` or `undefined`.\n- `schema`: Validates that a value fulfills a schema.\n- `isSchemaRelaxed`: Validates that a value may contain additional properties that are not described by the schema.\n\n##### Sample\n\n```javascript\nconst validator = formats.object({\n  isOptional: false,\n  schema: {\n    foo: formats.number(),\n    bar: formats.string()\n  },\n  isSchemaRelaxed: false\n});\n```\n\n#### regex\n\nValidates that a value matches a regular expression.\n\n##### Options\n\n- `expression`: Validates that the value matches a regular expression.\n\n##### Sample\n\n```javascript\nconst validator = formats.regex({\n  expression: /^foo$/\n});\n```\n\n#### string\n\nValidates that a value is of type `string`.\n\n##### Options\n\n- `minLength`: Validates that a value is at least `n` characters long.\n- `maxLength`: Validates that a value is at most `n` characters long.\n\n##### Sample\n\n```javascript\nconst validator = formats.string({\n  minLength: 5,\n  maxLength: 23\n});\n```\n\n#### uuid\n\nValidates that a value is a uuid.\n\n##### Sample\n\n```javascript\nconst validator = formats.uuid();\n```\n\n### Using custom validators\n\nIf you want to validate a value, but there is no matching built-in validator, you may use a custom validator.\n\nA custom validator is a function that returns a validator function that returns `true` if the specified value is valid, and `false` otherwise (or the value and the default value, respectively, if the `default` option is given). Once you have defined the custom validator, you can use it by providing it to the `custom` function.\n\nAdditionally, it is advised to protect against unknown properties to avoid typos when creating the validators. For this, use `throwOnUnknownProperties`.\n\n```javascript\nconst getReturnValue = require('formats').getReturnValue,\n    throwOnUnknownProperties = require('formats').throwOnUnknownProperties;\n\nconst range = function (options) {\n  options = options || {};\n  options.min = options.min || Number.NEGATIVE_INFINITY;\n  options.max = options.max || Number.POSITIVE_INFINITY;\n\n  throwOnUnknownProperties(options, [ 'min', 'max', 'default' ]);\n\n  return function (value) {\n    const returnValue = getReturnValue(value, options);\n\n    if (typeof value !== 'number') {\n      return returnValue.false;\n    }\n\n    if (value < options.min) {\n      return returnValue.false;\n    }\n\n    if (value > options.max) {\n      return returnValue.false;\n    }\n\n    return returnValue.true;\n  };\n};\n\nconst rangeValidator = formats.custom(range({ min: 5, max: 23 }));\nconsole.log(rangeValidator(42)); // => false\n```\n\n### Using is* validator functions\n\nIf you directly want to validate a value and skip the creation of a validator function, use the appropriate `is*` function, e.g. `isString`. These functions take the value as first parameter, and options as second.\n\n```javascript\nconsole.log(formats.isString('foobar', { minLength: 7 })); // => false\n```\n\nYou may also use the `default` option as described above with the is* validator functions.\n\n```javascript\nconsole.log(formats.isString('foobarbaz', {\n  minLength: 7,\n  default: 'formats'\n})); // => 'foobarbaz'\n\nconsole.log(formats.isString('foobar', {\n  minLength: 7,\n  default: 'formats'\n})); // => 'formats'\n```\n\n## Running the build\n\nTo build this module use [roboter](https://www.npmjs.com/package/roboter).\n\n```shell\n$ bot\n```\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2014-2018 the native web.\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","_attachments":{},"homepage":"https://github.com/thenativeweb/formats#readme","bugs":{"url":"https://github.com/thenativeweb/formats/issues"},"license":"MIT"}