UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

16 lines (15 loc) 770 B
export declare class RandomGenerator { /** * discuss at: http://locutus.io/php/sha1/ * original by: Webtoolkit.info (http://www.webtoolkit.info/) * improved by: Michael White (http://getsprink.com) * improved by: Kevin van Zonneveld (http://kvz.io) * input by: Brett Zamir (http://brett-zamir.me) * note 1: Keep in mind that in accordance with PHP, the whole string is buffered and then * note 1: hashed. If available, we'd recommend using Node's native crypto modules directly * note 1: in a steaming fashion for faster and more efficient hashing * example 1: sha1('Kevin van Zonneveld') * returns 1: '54916d2e62f65b3afa6e192e6a601cdbe5cb5897' */ static sha1(str: string): string; }