{"_id":"@aikoven/prebuilt-tdlib","name":"@aikoven/prebuilt-tdlib","dist-tags":{"latest":"0.1008023.0"},"versions":{"0.1008023.0":{"name":"@aikoven/prebuilt-tdlib","version":"0.1008023.0","description":"Prebuilt TDLib libraries","main":"index.js","types":"index.d.ts","scripts":{"build":""},"author":{"name":"Bannerets","email":"comonoid@protonmail.com"},"license":"MIT","keywords":["telegram","telegram-api","tdlib"],"repository":{"type":"git","url":"git+https://github.com/Bannerets/tdl.git"},"bugs":{"url":"https://github.com/Bannerets/tdl/issues"},"homepage":"https://github.com/Bannerets/tdl/tree/master/packages/prebuilt-tdlib#readme","_id":"@aikoven/prebuilt-tdlib@0.1008023.0","gitHead":"6a5faf2fe5f4d5859a911ae68715357395487e7f","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-p91q/L2KCTOIBWsnIo6rWGmxmuENE2heVDDvd6YQn3446xai5bYygK21Z1ykP5w3L8JNOsHac4x5O7cwaW0erw==","shasum":"a80bad83bab7a2b202af148ee46d95491e6097f0","tarball":"https://registry.npmjs.org/@aikoven/prebuilt-tdlib/-/prebuilt-tdlib-0.1008023.0.tgz","fileCount":13,"unpackedSize":93589672,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHTVbn1mxNvLZiSEHMiYTI12JSoU0j1gUTGpo9BAqEEwIgcvUH0qj9orhtFz3l60ob9Rmc3Zqvf0+JR1CgzULlx1c="}]},"_npmUser":{"name":"aikoven","email":"dan.lytkin@gmail.com"},"directories":{},"maintainers":[{"name":"aikoven","email":"dan.lytkin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prebuilt-tdlib_0.1008023.0_1705738257195_0.9345749906532865"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-20T08:10:57.078Z","0.1008023.0":"2024-01-20T08:10:57.779Z","modified":"2024-01-20T08:10:58.052Z"},"maintainers":[{"name":"aikoven","email":"dan.lytkin@gmail.com"}],"description":"Prebuilt TDLib libraries","homepage":"https://github.com/Bannerets/tdl/tree/master/packages/prebuilt-tdlib#readme","keywords":["telegram","telegram-api","tdlib"],"repository":{"type":"git","url":"git+https://github.com/Bannerets/tdl.git"},"author":{"name":"Bannerets","email":"comonoid@protonmail.com"},"bugs":{"url":"https://github.com/Bannerets/tdl/issues"},"license":"MIT","readme":"# Prebuilt TDLib\n\nThis package distributes pre-built [TDLib][] shared libraries through npm.\nThe libraries are built on GitHub Actions: [prebuilt-tdlib.yml][].\n\n[TDLib]: https://github.com/tdlib/td\n[prebuilt-tdlib.yml]: ../../.github/workflows/prebuilt-tdlib.yml\n\nThe shared libraries are statically linked against OpenSSL and zlib to prevent\ncompatibility issues in Node.js.\n\nSupported systems:\n- GNU/Linux x86_64 (requires glibc >= 2.17)\n- macOS x86_64, arm64 (universal, requires macOS >= 10.14)\n- Windows x86_64\n\nTo install `prebuilt-tdlib` for e.g. TDLib v1.8.19, run:\n\n```console\n$ npm install prebuilt-tdlib@td-1.8.19\n```\n\n`prebuilt-tdlib` can be installed for other TDLib versions, run\n`$ npm info prebuilt-tdlib dist-tags` to get the list of available versions\n(or see the \"npm tags\" section below).\n\n> **Note**: Before `prebuilt-tdlib@td-1.8.14` (2023-06-26), the Linux binary was\n> built on Ubuntu 20.04 requiring glibc >= 2.31, and macOS arm64 was not\n> supported. Currently, the Linux build environment is based on CentOS 7. The\n> macOS arm64 binary isn't tested in the CI.\n\n## Usage\n\nThe `prebuilt-tdlib` package exports a single function `getTdjson`, which\nreturns the path to the `tdjson` shared library.\n\n```javascript\nconst { getTdjson } = require('prebuilt-tdlib')\nconsole.log(getTdjson())\n// Prints a path like:\n// '/home/user/proj/node_modules/prebuilt-tdlib/prebuilds/tdlib-linux-x64/libtdjson.so'\n```\n\nThis package can be used with, for example, [`tdl`][tdl]. You can pass the\npath to `tdl.configure` (since tdl v7.3.0):\n\n[tdl]: https://github.com/Bannerets/tdl\n\n```javascript\nconst tdl = require('tdl')\nconst { getTdjson } = require('prebuilt-tdlib')\ntdl.configure({ tdjson: getTdjson() })\n// ...\n```\n\nThe pre-built libraries can also be extracted and used with any other library\nor programming language.\n\n## Versioning conventions\n\n> **Note**: This information is mostly for maintaining `prebuilt-tdlib`, it\n> isn't necessary for using this package.\n\nBecause TDLib does not follow SemVer, not to require the users to manually\nspecify the exact version of `prebuilt-tdlib` in their `package.json`, the TDLib\nversion is packed into a single minor version.\n\n`prebuilt-tdlib` is published to npm under versions `0.xyyyzzz.v`, where\n\n- `x`, `y`, `z` correspond to the `x.y.z` TDLib version (e.g., 1.8.0). The\n  leading zeros are appended to `y` and `z` (y=`8` becomes y=`008`).\n- `v` corresponds to the version of `prebuilt-tdlib` itself, these updates can\n  contain fixes in case some of the builds were broken or include new pre-built\n  libraries for other platforms.\n- The major version is always `0`.\n\nExample: the npm release for TDLib `v1.8.5` is `0.1008005.0`.\n\nFor convenience, `td-X` dist-tags are available. To install `prebuilt-tdlib` for\nTDLib v1.8.5, just run `npm install prebuilt-tdlib@td-1.8.5`, or\n`npm install prebuilt-tdlib@td-1.8.0` for TDLib v1.8.0. This will automatically\ninstall the needed version of `prebuilt-tdlib`.\n\nAdditionaly, TDLib's releasing process is weird, and most of the\n`prebuilt-tdlib` releases are not connected to a specific tag release in the\nTDLib repository.\n\nThe releases of the `prebuilt-tdlib` npm package are not git-tagged.\n\n## npm tags\n\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/latest.svg)](https://www.npmjs.com/package/prebuilt-tdlib)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/stable.svg)](https://www.npmjs.com/package/prebuilt-tdlib)\n\n<!-- Add new versions below -->\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.19.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.19) tdlib [2589c3fd46925f5d57e4ec79233cd1bd0f5d0c09](https://github.com/tdlib/td/commit/2589c3fd46925f5d57e4ec79233cd1bd0f5d0c09)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.14.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.14) tdlib [66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9](https://github.com/tdlib/td/commit/66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.12.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.12) tdlib [70bee089d492437ce931aa78446d89af3da182fc](https://github.com/tdlib/td/commit/70bee089d492437ce931aa78446d89af3da182fc)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.7.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.7) tdlib [de5379f00b6af7686f197037ca3b494e6277e523](https://github.com/tdlib/td/commit/de5379f00b6af7686f197037ca3b494e6277e523)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.5.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.5) tdlib [d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9](https://github.com/tdlib/td/commit/d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.8.0.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.8.0)\n\nOutdated versions:\n\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.7.0.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.7.0)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.6.0.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.6.0)\n- [![npm](https://img.shields.io/npm/v/prebuilt-tdlib/td-1.5.0.svg)](https://www.npmjs.com/package/prebuilt-tdlib/v/td-1.5.0)\n","readmeFilename":"README.md"}