You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Now that you've loaded the module, you can [start using it](#usage-1).
92
92
```
93
93
94
94
##### Usage
95
-
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.
95
+
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.
0 commit comments