russians-detector

1.1.4 • Public • Published

russians-detector

Returns true if visitor of your web resource is russian. Do what you want with him, I don't care.

Zero dependency, lightweight detector of russian clients (by different browser data and ip).

Install

Install with npm:

$ npm i -S russians-detector

Usage

import { isRussian, isRussianByIP } from 'russians-detector';
// or
const { isRussian, isRussianByIP } = require('russians-detector');
// or
const isRussian = require('russians-detector').isRussian;
const isRussianByIP = require('russians-detector').isRussianByIP;

isRussian(); // => true | false
isRussianByIP().then((result) => result); // => true | false | undefined*

// * – client blocks tracking or server response error

Demo

Check if you are russian according to my script.

Purpose

Russians do not deserve to enjoy the benefits of the civilized democratic world. Not anymore.

So you can show them different content, or nothing at all. It's up to you.

Why?

Russia has been waging wars and genocide against peaceful peoples for centuries. Russia is a terrorist state that sneezes at the freedom and sovereignty of others. And what about the russians themselves? They do not protest, they do not oppose the dictatorial regime. Moreover, they support every war and every murder. This is what is happening today in relation to Ukraine and Ukrainians. This is what happened earlier in relation to Moldova and Georgia. Moscow imperialism must disappear!

License

Copyright © 2023, Bohdan Yatsenko. Released under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    1
    • latest

Version History

Package Sidebar

Install

npm i russians-detector

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

20.1 kB

Total Files

8

Last publish

Collaborators

  • mr_devboy