🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@nldoc/api-client

Package Overview
Dependencies
Maintainers
3
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nldoc/api-client

Client for NLdoc's API

npmnpm
Version
2.0.110
Version published
Weekly downloads
27
-79.07%
Maintainers
3
Weekly downloads
 
Created
Source

NLdoc API Client

This repository contains the API client for the NLdoc API.

Installation

Run:

npm install @nldoc/api-client

Usage

import { Client } from '@nldoc/api-client'
import { type Event } from '@nldoc/event-types'

const client = new Client('https://some-api-endpoint.nldoc.nl')

const blob = // ...

const results = await client.convert(blob, 'text/html')
const firstResult = results[0]

const stream = client.createEventStream(firstResult)
stream.subscribe((event: Event) => {
  // ...
})

Development

Project structure

The project is structured as follows:

  • src/: Contains the TypeScript source files.
    • src/**/*.spec.ts: Contains the tests for the TypeScript source files.
    • src/**/*.ts: Contains the actual code.
  • dist/: Contains the compiled JavaScript files.

Testing

The types in this package are tested against the collection of examples (valid and invalid) that were provided in the NLdoc event specification. These examples will be downloaded to the local filesystem on first run of the tests.

To run the tests, run:

$ npm test

License

See LICENSE.txt for the license of this repository.

FAQs

Package last updated on 09 Aug 2025

Did you know?

Socket

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.

Install

Related posts