DavidTanner / nodecredstash

MIT License
43 stars 22 forks source link

Get all the secrets starting with a special character #19

Closed oktapodia closed 6 years ago

oktapodia commented 6 years ago

Hello,

Thanks for your tool, it could be great to have an option in the getAllSecrets to only get the secrets which start with something

eg:

// All my secrets
{ 
  foo: 'secret...',
  foo2: 'secret...',
  'bar: 'secret...'
}

nodecredstash.getAllSecrets({ startsWith: 'foo' }).then(console.log);
// { foo: 'secret...', foo2: 'secret...' }

Regards

DavidTanner commented 6 years ago

Fixed with #20