mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
9 lines
181 B
Go
9 lines
181 B
Go
import md5 from 'md5';
|
|
|
|
export const getMd5 = (value: any): string => {
|
|
if (typeof value !== 'string') {
|
|
value = JSON.stringify(value);
|
|
}
|
|
return md5(value).toString();
|
|
};
|