npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

prebuilt-tdlib-amazon-linux-2

v0.1008012.0

Published

Prebuilt TDLib libraries for Amazon Linux 2

Downloads

6

Readme

Prebuilt TDLib for Amazon Linux 2

This package is a fork of the Bannerets/tdl prebuilt-tdlib package. The fork was modified to work with Amazon Linux 2, which contans an older glibc version that does not work using the original prebuilt-tdlib package.

Prebuilt TDLib

This package distributes pre-built TDLib shared libraries through npm. The libraries are built on GitHub Actions: prebuilt-tdlib.yml.

The shared libraries are statically linked against OpenSSL and zlib to prevent compatibility issues in Node.js.

Supported systems:

  • GNU/Linux x86_64

On Linux, TDLib is built on Amazon Linux 2 and requires glibc version >= 2.26 to be installed on your system.

To install prebuilt-tdlib-amazon-linux-2 for e.g. TDLib v1.8.12, run:

$ npm install [email protected]

prebuilt-tdlib-amazon-linux-2 can be installed for other TDLib versions, see the "npm tags" section below or $ npm info prebuilt-tdlib-amazon-linux-2 to get the list of available versions.

Usage

The prebuilt-tdlib-amazon-linux-2 package exports a single function getTdjson, which returns the path to the tdjson shared library.

const { getTdjson } = require('prebuilt-tdlib-amazon-linux-2')
console.log(getTdjson())
// Prints a path like:
// '/home/user/proj/node_modules/prebuilt-tdlib-amazon-linux-2/prebuilds/tdlib-linux-x64/libtdjson.so'

This package can be used with, for example, tdl. You can pass the path to the TDLib constructor:

const { TDLib } = require('tdl-tdlib-addon')
const { getTdjson } = require('prebuilt-tdlib-amazon-linux-2')
/* ... */ new TDLib(getTdjson()) /* ... */

Versioning

Because TDLib does not follow Semver, to not require the users to manually specify the exact version of prebuilt-tdlib-amazon-linux-2 in their package.json, the TDLib version is packed into a single minor version.

prebuilt-tdlib-amazon-linux-2 is published to npm under versions 0.xyyyzzz.v, where

  • x, y, z correspond to the x.y.z TDLib version (e.g., 1.8.0). The leading zeros are appended to y and z (y=8 becomes y=008).
  • v corresponds to the version of prebuilt-tdlib-amazon-linux-2 itself, these updates can contain fixes in case some of the builds were broken or include new pre-built libraries for other platforms.
  • The major version is always 0.

E.g. the npm release for TDLib v1.8.5 is 0.1008005.0.

For convenience, td-X dist-tags are available. To install prebuilt-tdlib-amazon-linux-2 for TDLib v1.8.5, just run npm install [email protected], or npm install [email protected] for TDLib v1.8.0. This will automatically install the needed version of prebuilt-tdlib-amazon-linux-2.

Additionaly, TDLib's versioning is weird, and some of the prebuilt-tdlib-amazon-linux-2 releases are not connected to a specific tag release in the TDLib repository.

The releases of the prebuilt-tdlib-amazon-linux-2 npm package are not git-tagged.

npm tags