npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hcfy/check-google-translate-ip-cli

v1.1.2

Published

## Install

Downloads

79

Readme

Google Translate IP / Host Checker

Install

First, install it globally:

npm i -g @hcfy/check-google-translate-ip-cli

Note: Please turn off the TUN / TAP mode of the proxy software before use, otherwise it may go through the proxy when detecting whether the IP is available, which will lead to inaccurate test results.

Usage

Detects the list of IPs within this URL: https://unpkg.com/@hcfy/google-translate-ip/ips.txt

Equivalent to running ggc -u https://unpkg.com/@hcfy/google-translate-ip/ips.txt.

$ ggc
Downloading the file from https://unpkg.com/@hcfy/google-translate-ip/ips.txt
Done.

Start detecting. This takes a little time, up to 10 seconds.
...

Check if multiple IP / Host are available

$ ggc 172.253.114.90,172.217.203.90,142.250.4.90,www.baidu.com,translate.amz.wang,gtranslate.cdn.haah.net
Start detecting. This takes a little time, up to 10 seconds.
┌─────────┬───────────────────────────┬───────────┬─────────────┬───────────────┬─────────────────────────────────────────────────────────┐
│ (index) │         IP / Host         │ Available │ Status Code │ Response time │                   Why not available?                    │
├─────────┼───────────────────────────┼───────────┼─────────────┼───────────────┼─────────────────────────────────────────────────────────┤
│    0    │   'translate.amz.wang'    │   'Yes'   │     200     │    '868ms'    │                          'N/A'                          │
│    1    │     '172.217.203.90'      │   'Yes'   │     200     │    '889ms'    │                          'N/A'                          │
│    2    │     '172.253.114.90'      │   'Yes'   │     200     │   '1222ms'    │                          'N/A'                          │
│    3    │      'www.baidu.com'      │   'No'    │     404     │     'N/A'     │              'The status code is not 200.'              │
│    4    │ 'gtranslate.cdn.haah.net' │   'No'    │    'N/A'    │     'N/A'     │ 'An error occurred during the request: read ECONNRESET' │
│    5    │      '142.250.4.90'       │   'No'    │    'N/A'    │     'N/A'     │            'No response within 10 seconds.'             │
└─────────┴───────────────────────────┴───────────┴─────────────┴───────────────┴─────────────────────────────────────────────────────────┘

Load the IP / Host to be checked from a file

IP addresses / host in ips.txt need to be separated by line breaks.

$ ggc -f ips.txt
Loading file...
Done.

Start detecting. This takes a little time, up to 10 seconds.
...

Load the IP / Host to be checked from URL

$ ggc -u https://unpkg.com/@hcfy/google-translate-ip/ips.txt
Downloading the file from https://unpkg.com/@hcfy/google-translate-ip/ips.txt
Done.

Start detecting. This takes a little time, up to 10 seconds.
...

When loading the IP from the URL, you can specify to download this file through a proxy:

$ export $https_proxy=http://example.com
$ ggc -u https://raw.githubusercontent.com/hcfyapp/google-translate-cn-ip/master/packages/google-translate-ip/ips.txt
This proxy will be used to download file: http://example.com
It will not be used to check if the IP / Host is available.

Downloading the file from https://raw.githubusercontent.com/hcfyapp/google-translate-cn-ip/master/packages/google-translate-ip/ips.txt
Done.

Start detecting. This takes a little time, up to 10 seconds.
...