
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
typestub-ipfs-only-hash
Advanced tools
Typescript declaration and wrapper for ipfs-only-hash
export function of (
content: string | Buffer | Stream,
): Promise<string>
Using namespace import
import * as Hash from 'typestub-ipfs-only-hash'
;(async () => {
const data = 'hello world!'
const hash = await Hash.of(data)
console.log(hash) // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j
})()
Or using named import:
import { of } from 'typestub-ipfs-only-hash'
;(async () => {
const data = 'hello world!'
const hash = await of(data)
console.log(hash) // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j
})()
Details refer to examples
FAQs
The type definition for ipfs-only-hash package
We found that typestub-ipfs-only-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.