
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
This module implements the Lord of The Rings API that can be found under https://the-one-api.dev/v2. The module can be imported and used in your code as:
import { LotrSdk } from 'tcatic-sdk';
// Create a LotrSdk instance with your bearer token from `the-one-api`
const lotrSdk = new LotrSdk('your-api-key');
// Get all books
const books = await lotrSdk.books.get();
// Get one specific book
const book = await lotrSdk.books.get({
id: '5cf5805fb53e011a64671582'
});
/* All options that can be set are
{
id?: string;
action?: 'quote' | 'chapter';
limit?: number;
page?: number;
offset?: number;
filter?: FilterOptions;
sort?: SortOptions;
}
*/
The module supports five different endpoints: /book
, /character
, /chapter
, /movie
, /quote
. All modules can be accessed in the same way:
lotrSdk.{books | characters | chapters | movies | quotes }.get();
To test the application, just run npm run test
from the root. For now, tests have only been added for the /book
endpoint and should be expanded.
FAQs
SDK for an existing LOTR API
We found that tcatic-sdk 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
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.