Skip to content

Commit

Permalink
Improve JavaScript example README.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 4ea310d3c4fae50e39a85ac2db702ad6d0617995
  • Loading branch information
levlam committed Sep 5, 2018
1 parent 69cb902 commit a9608ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ You can also check out [example/python/tdjson_example.py](https://github.com/tdl
<a name="javascript"></a>
## Using TDLib in JavaScript projects

TDLib can be used from Node.JS through the [JSON](https://github.com/tdlib/td#using-json) interface.
TDLib can be used from Node.js through the [JSON](https://github.com/tdlib/td#using-json) interface.

Convenient Node.JS wrappers already exist for our JSON interface.
Convenient Node.js wrappers already exist for our JSON interface.
For example, take a look at [tdl](https://github.com/Bannerets/tdl), which provides a convenient, fully-asynchronous interface for interaction with TDLib and contains a bunch of examples.

You can also see [node-tdlib](https://github.com/wfjsw/node-tdlib), [tglib](https://github.com/nodegin/tglib) and
[Paper Plane](https://github.com/BlackSuited/paper-plane) for other examples of TDLib JSON interface integration with Node.js.
You can also see [node-tdlib](https://github.com/wfjsw/node-tdlib), [tglib](https://github.com/nodegin/tglib),
[Paper Plane](https://github.com/BlackSuited/paper-plane) and [example/javascript](https://github.com/tdlib/td/tree/master/example/javascript) for other examples of TDLib JSON interface integration with Node.js.

TDLib also can be compiled to WebAssembly and used in a browser from JavaScript, but this functionality isn't production-ready yet. We will publish building and usage instructions later.

Expand Down
6 changes: 4 additions & 2 deletions example/javascript/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# TDLib JavaScript (Node.js) example

#### Requirements

- node.js v9.0.0+
- libtdjson binary
- Node.js v9.0.0+
- [Prebuilt](https://github.com/tdlib/td#building) tdjson shared library

#### Run

Expand Down

0 comments on commit a9608ca

Please sign in to comment.