michaelrhodes / sha1-regex

see if a string is a sha-1 hash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sha1-regex

sha1-regex is a regular expression that matches hex-encoded sha-1 hashes.

Build status

install

$ npm install sha1-regex

example

var sha1 = require('sha1-regex')

sha1.test('17413f944145f37dcaa9bc55d9a201a248a08aae')
> true

sha1.test('nope')
> false

license

MIT

About

see if a string is a sha-1 hash


Languages

Language:JavaScript 100.0%