{"library":"bcrypt-ts","type":"library","category":null,"description":"bcrypt-ts is a TypeScript-first, pure JavaScript implementation of the bcrypt password-hashing function, designed for both Node.js and browser environments. It provides cryptographic hashing for passwords, focusing on security features like salting and an adaptive iteration count to resist brute-force attacks. The current stable version is 8.0.1. The project appears to have a relatively active release cadence, with major versions (v6, v7, v8) released over time, often driven by Node.js version support or build system changes. Key differentiators from `bcrypt.js` include being fully written in TypeScript, providing separate ESM modules optimized for Node.js and browsers, offering better tree-shaking, and having a minified output. While compatible with the C++ `bcrypt` binding, it's inherently slower due to being a pure JavaScript implementation (approximately 30% slower according to the README, referencing `bcrypt.js` benchmarks), which means fewer iterations can be performed in the same timeframe, requiring careful consideration of the work factor.","language":"javascript","status":"active","version":"8.0.1","tags":["javascript","bcrypt","bcryptjs","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bcrypt-ts","imports":["import { genSaltSync } from 'bcrypt-ts'","import { hash } from 'bcrypt-ts'","import { compareSync } from 'bcrypt-ts'","import { hash } from 'bcrypt-ts/node'"]},{"cmd":"yarn add bcrypt-ts","imports":[]},{"cmd":"pnpm add bcrypt-ts","imports":[]}],"homepage":null,"github":"https://github.com/Mister-Hope/bcrypt-ts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bcrypt-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bcrypt-ts/compatibility"}}