Socket
Socket
Sign inDemoInstall

tdl-tdlib-addon

Package Overview
Dependencies
7
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tdl-tdlib-addon

Node.js N-API addon that provides bindings to TDLib


Version published
Weekly downloads
101
decreased by-4.72%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

tdl-tdlib-addon@1.2.2 (2023-03-23)

  • Fixed freeing unallocated memory on app shutdown if callbacks were set.
  • Updated dependencies.

Readme

Source

tdl-tdlib-addon

npm

A Node.js N-API addon that provides bindings to the TDLib's libtdjson shared library.

It is meant to be used with the tdl package.

tdl-tdlib-addon provides TypeScript and Flow typings out of the box.

Installation

$ npm install tdl-tdlib-addon

API

const { TDLib, defaultLibraryFile } = require('tdl-tdlib-addon')
constructor: new TDLib(libraryFile?: string, addonPath?: string)

libraryFile is the filename that will be passed to dlopen or LoadLibraryW on Windows.

By default, libraryFile is tdjson.dll on Windows, libtdjson.dylib on macOS, and libtdjson.so on a different OS. This default value is exported as defaultLibraryFile.

addonPath is ../build/Release/td.node by default. This parameter generally should not be changed.

Examples:

new TDLib()
new TDLib('libtdjson.so')
new TDLib('libtdjson.dylib')
new TDLib('libtdjson.so', '../build/Release/td.node')

For other API see TDLib_API.md in the tdl repository root.

Keywords

FAQs

Last updated on 23 Mar 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc