https://github.com/diegohaz/is-git-rev
Verify if a string is a git-rev hash
https://github.com/diegohaz/is-git-rev
git-rev nodejs
Last synced: 3 months ago
JSON representation
Verify if a string is a git-rev hash
- Host: GitHub
- URL: https://github.com/diegohaz/is-git-rev
- Owner: diegohaz
- License: mit
- Created: 2017-01-15T21:30:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T02:38:17.000Z (almost 8 years ago)
- Last Synced: 2024-05-01T23:15:50.586Z (about 1 year ago)
- Topics: git-rev, nodejs
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-git-rev
[](https://github.com/diegohaz/nod)
[](https://npmjs.org/package/is-git-rev)
[](https://travis-ci.org/diegohaz/is-git-rev) [](https://codecov.io/gh/diegohaz/is-git-rev/branch/master)Verify if a string is a git-rev hash
## Install
$ npm install --save is-git-rev
## Usage
```js
import isGitRev from 'is-git-rev'isGitRev('f9b9150f71db48a49a2e3de5f817cec120334d81')
```## API
### isGitRev
Verify if `hash` is a git-rev sha1 hash.
**Parameters**
- `hash` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
## License
MIT © [Diego Haz](https://github.com/diegohaz)