Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createPbfStream(opts){
var conf = config(opts);
validatePath( conf.file, 'failed to stat pbf file: ' + conf.file );
validatePath( conf.leveldb, 'failed to stat leveldb path: ' + conf.leveldb );
validateTags( conf.tags );
return pbf2json.createReadStream(conf);
}