
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@truestamp/client
Advanced tools
A small Truestamp API wrapper library, written in Typescript, for usage in Deno and Node.js.
Usage of this library requires an active Truestamp account, and an associated API key.
How to install and use the TruestampClient
in different runtime environments.
In your NPM project root.
npm install @truestamp/client --save
Require the @truestamp/client
CommonJS module in your project and
initialize it with an api key.
const { TruestampClient } = require("@truestamp/client")
...
Import the @truestamp/client
ESM module in your project via esm.sh and initialize it with an apiKey.
// Tip : Load module from esm.sh CDN, pinned to a specific version.
import { TruestampClient } from "https://esm.sh/@truestamp/client@0.15.0"
...
The first step is to instantiate an instance of the TruestampClient
class, passing it your apiKey
as an argument.
The client class instance the makes available a number of functions, each of which accepts typed arguments and returns typed response Objects
.
// See installation section for your runtime environment.
import { TruestampClient } from "@truestamp/client"
const ts = new TruestampClient({ apiKey: "%yourApiKey%" })
const myHash =
"e728e4adeb8c0606fce4686552338622efeb8c63b53d072a323a4914d1aa5c07"
// Create new Item
const resp = await ts.createItem(
{
itemData: [
{
hash: myHash,
hashType: "sha-256",
},
],
},
{ skipCF: false, skipOE: false }
)
// Success! `resp` contains good response JSON
// of the appropriate type.
console.log("createItem", resp)
There are working code examples for Deno and Node.js in the /examples directory. Take a look at the examples/README.md for usage instructions.
Please see our Github organization's profile at github.com/truestamp for quick access to links related to these and other important topics.
Copyright © 2019-2023 Truestamp Inc. All Rights Reserved.
FAQs
## Description
We found that @truestamp/client 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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.