Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Dec 10, 2024
1 parent d4ae9d1 commit bb289d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/hit-too-many-reqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Allows to estimate requests limit for your location/env.
*
* Usage:
* npx ts-node-esm examples/hit-too-many-reqs.ts
* node --loader ts-node/esm examples/hit-too-many-reqs.ts
*/

import timers from 'node:timers/promises';
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Simple translation example.
*
* Usage:
* npx ts-node-esm examples/simple.ts
* node --loader ts-node/esm examples/simple.ts
*/

import { translate } from '../src/index.js';
Expand Down
2 changes: 1 addition & 1 deletion examples/with-changed-ua.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Translation example with changed User agent.
*
* Usage:
* npx ts-node-esm examples/with-changed-ua.ts
* node --loader ts-node/esm examples/with-changed-ua.ts
*/
import { RequestInit } from 'node-fetch';
import { translate } from '../src/index.js';
Expand Down
4 changes: 2 additions & 2 deletions examples/with-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* Use anonymous proxies with 'yes' in Google column.
*
* Usage:
* npx ts-node-esm examples/with-proxy.ts <PROXY>
* node --loader ts-node/esm examples/with-proxy.ts <PROXY>
*
* Example:
* npx ts-node-esm examples/with-proxy.ts 8.210.83.33:80
* node --loader ts-node/esm examples/with-proxy.ts 8.210.83.33:80
*/
import { RequestInit } from 'node-fetch';
import { HttpProxyAgent } from 'http-proxy-agent';
Expand Down

0 comments on commit bb289d2

Please sign in to comment.