0.0.3 • Published 7 years ago

uuid-validate v0.0.3

Weekly downloads
85,787
License
MIT
Repository
github
Last release
7 years ago

uuid-validator

Build Status

Useful little package to validate UUIDs in Node.js. Usage:

var validate = require('uuid-validate');

// Let's validate a uuid version 1. If we don't pass a version, it'll
// infer it based on the uuid itself.
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e'); // => true

// We can tell it what version to expect, and if it gets the wrong
// version, it'll return false.
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e', 1); // => true (it's version 1)
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e', 4); // => false (it's not version 4)

// You can also pass buffers instead of strings.
// This works for UUID versions 1 through 4

// If you want to find out what version a UUID is:
validate.version('95ecc380-afe9-11e4-9b6c-751b66dd541e'); // => 1
yubo-app@directus-asolole/apiplatform_npm_gams@icalockers/utils@seasketch-sls-geoprocessing/pluginseasketch-sls-geoprocessing@icanpm/api2@icanpm/api-master@madgex/cpid-clik4ops2-cli@byhuz/huz-api-testpapiea-engine@smartbooking/frameworkaccount-management-apitjv@lysander6/directusaulasl-nestjs-eventsourcingdirectus9-litereact-material-ui-file-managernestjscolab.dddnestjscolab.dddlibdimensio@pfc/custom-validatorspfc-custom-validators@everything-registry/sub-chunk-3034synqueitshared-layerreview-service-basereview-service-baselinestored-mapstorj-service-storage-modelssvc-promo@atlaskit/media-card@devskills/account-management-apilinkzip-cliloom-datagraphql-type-idjoinnectorjec-glasscat-metadatajsonata-extendedmtr-mysqlmotionbank-systems-frontendhomebridge-kiwigridgin-platform-node-sdkmediaviewnodejs-clab-rngnodejs-hap-serverorigami-store-mongodborigami-test-storepolymodpixkeyplataformabr-util-validatorpro-aknode-boot-datapecunia-node-sdkmv-data-coremv-data-core-alpha-buildstreaming-apisnicketsimple-odmsp-plugin-coreto-dto@asefux/common@arc-directus/api@atlaskit/media-common@atlaskit/media-picker@atlaskit/media-client@aurora-ts/core@aurorajs.dev/core@bcgsc-pori/graphkb-schema@aetheras/ejchatjs@cabineat/utilities@aciesai/azure-kusto-ingest@aclisp/directus@__feedback__/shared@boss-net/github-import@db-studio/api@digicube/apitsc-utilsts-eventsourcing@finnair/v-validation-core@grupohdi/utils@grupohdi/api@hke/storage@icatelhomologacao/api@icatelhomologacao/utils@forrestjs/feature-pg-auth@gitaflow/api@infinitebrahmanuniverse/nolb-uu@ksf-media/vetrina@madgex/fert@mvp-rockets/namma-lib@napses/api-functional-lib@napses/namma-lib@new-mv-datacore/api@factoryframeworks/forge@mbesagilpublics/master-lib@metachain/api@kalamazoo/media-client@jonas.tang/mgcc-dms-api
0.0.3

7 years ago

0.0.2

9 years ago

0.0.1

10 years ago