gcs-filepath-validator
v1.0.0
Published
Validates bucket / object pairs
Downloads
147
Readme
GCS Filepath Validator
Validates "bucket/object" or {bucket, object} as per naming guidelines.
Usage
npm install gcs-filepath-validator
validator.validateFilepath("my-bucket/my-object");
validator.validateFilepath({bucket: "my-bucket", object: "my-object"});
validator.validateBucket("my-bucket");
validator.validateObject("my-object");