Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gignupg authored Mar 28, 2021
1 parent f52bbc5 commit 2b40f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Now that you've loaded the module, you can [start using it](#usage-1).
```

##### Usage
The `<script>` tag exposes the `languageEncoding` function to everything in the DOM located beneath it. You should have no trouble accessing it with Javascript by calling the `languageEncoding` function and passing in the file that you want to analyze as the only argument. As you can see in the example below, `languageEncoding` returns a Promise that you can use to retrieve the encoding, language and confidenc score of any text file as long as your text file is large enough.
The `<script>` tag exposes the `languageEncoding` function to everything in the DOM located beneath it. When you call it and pass in the file that you want to analyze, it'll return a Promise that you can use to retrieve the encoding, language and confidenc score as shown in the example below.

```js
// app.js
Expand Down

0 comments on commit 2b40f4c

Please sign in to comment.