Registry / auth-security / ripemd-ts

ripemd-ts

JSON →
library0.0.2jsnpmunverified

RIPEMD hash functions (RIPEMD-160, RIPEMD-128, RIPEMD-256, RIPEMD-320) implemented in TypeScript. Current version 0.0.2 is a pre-release and ships TypeScript type definitions. Notable for providing pure TypeScript implementation of the RIPEMD family of cryptographic hash functions. However, the package appears to be using the TypeScript-library-starter boilerplate and may not be production-ready. No release cadence established. Alternative: ripemd160 (npm) for a more mature JavaScript implementation.

npm install ripemd-ts
INSTALL
IMPORT
SIG · RIPEMD-TS
R
ripemd-ts
auth-securityjavascriptv0.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RIPEMD160
import { RIPEMD160 } from 'ripemd-ts'
import RIPEMD160 from 'ripemd-ts'
Named export, not default.
RIPEMD128
import { RIPEMD128 } from 'ripemd-ts'
const RIPEMD128 = require('ripemd-ts').RIPEMD128
ESM only. CJS require works but uses .property.
RIPEMD256
import { RIPEMD256 } from 'ripemd-ts'
const RIPEMD256 = require('ripemd-ts')
require returns module object; need property access.
RIPEMD320
import { RIPEMD320 } from 'ripemd-ts'
Named export.

Demonstrates creating hash instances, updating with data, and digesting to hex string. Uses TypeScript with named imports.

import { RIPEMD160, RIPEMD128, RIPEMD256, RIPEMD320 } from 'ripemd-ts'; const message = 'Hello, world!'; const hash160 = new RIPEMD160().update(message).digest('hex'); console.log('RIPEMD-160:', hash160); const hash128 = new RIPEMD128().update(message).digest('hex'); console.log('RIPEMD-128:', hash128); const hash256 = new RIPEMD256().update(message).digest('hex'); console.log('RIPEMD-256:', hash256); const hash320 = new RIPEMD320().update(message).digest('hex'); console.log('RIPEMD-320:', hash320);
Debug
Known issues
gotchaPackage is a pre-release (0.0.2) and may have incomplete or buggy implementations. Not audited for cryptographic correctness.
fix
Consider using a more mature library like ripemd160 (npm) for production.
affects: >=0.0.0
gotchaDefault import (import X from 'ripemd-ts') is undefined; must use named import.
fix
Use import { RIPEMD160 } from 'ripemd-ts'.
affects: >=0.0.0
deprecatedNaming conventions for hash function exports are not standardized; may change in future releases.
fix
Monitor changelog for breaking changes.
affects: 0.0.2
gotchaOnly ESM module format is available in package; CJS require is not directly supported but works via property access (require('ripemd-ts').RIPEMD160).
fix
If using CommonJS, use const { RIPEMD160 } = require('ripemd-ts').
affects: >=0.0.0
Errors
Common errors & fixes
import RIPEMD160 from 'ripemd-ts'; // TypeError: Cannot read properties of undefined
Default import not available; library exports only named exports.
fix
import { RIPEMD160 } from 'ripemd-ts';
const RIPEMD160 = require('ripemd-ts'); // RIPEMD160 is not a constructor
require returns the module object, not the constructor directly.
fix
const { RIPEMD160 } = require('ripemd-ts');
ReferenceError: RIPEMD160 is not defined (when using wrong import syntax in TS)
TypeScript not recognizing named import or using default import erroneously.
fix
Ensure import statement uses named export: import { RIPEMD160 } from 'ripemd-ts';
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
ripemd-ts — npm install ripemd-ts · libregistry