mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-07 06:45:23 +02:00
23 lines
417 B
TypeScript
23 lines
417 B
TypeScript
/// <reference types="node" />
|
|
|
|
/**
|
|
Create a hash for file revving.
|
|
|
|
@param input - Data to create a hash from.
|
|
|
|
@example
|
|
```
|
|
import * as fs from 'fs';
|
|
import revisionHash = require('rev-hash');
|
|
|
|
revisionHash(fs.readFileSync('unicorn.png'));
|
|
//=> 'bb9d8fe615'
|
|
|
|
revisionHash('Lorem ipsum dolor sit amet');
|
|
//=> 'fea80f2db0'
|
|
```
|
|
*/
|
|
declare function revisionHash(input: Buffer | string): string;
|
|
|
|
export = revisionHash;
|