From bb289d2d216deefac76f48bfe1b8543ac55bbe6e Mon Sep 17 00:00:00 2001 From: vitalets Date: Tue, 10 Dec 2024 09:30:18 +0400 Subject: [PATCH] fix examples --- examples/hit-too-many-reqs.ts | 2 +- examples/simple.ts | 2 +- examples/with-changed-ua.ts | 2 +- examples/with-proxy.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/hit-too-many-reqs.ts b/examples/hit-too-many-reqs.ts index 2ab22563..86cd9394 100644 --- a/examples/hit-too-many-reqs.ts +++ b/examples/hit-too-many-reqs.ts @@ -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'; diff --git a/examples/simple.ts b/examples/simple.ts index 8b103c97..4a76cbc0 100644 --- a/examples/simple.ts +++ b/examples/simple.ts @@ -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'; diff --git a/examples/with-changed-ua.ts b/examples/with-changed-ua.ts index f05f39f4..8984f2f0 100644 --- a/examples/with-changed-ua.ts +++ b/examples/with-changed-ua.ts @@ -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'; diff --git a/examples/with-proxy.ts b/examples/with-proxy.ts index d805fe33..e31b866e 100644 --- a/examples/with-proxy.ts +++ b/examples/with-proxy.ts @@ -3,10 +3,10 @@ * Use anonymous proxies with 'yes' in Google column. * * Usage: - * npx ts-node-esm examples/with-proxy.ts + * node --loader ts-node/esm examples/with-proxy.ts * * 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';