Displaying 1 to 20 from 143 results

franc - Natural language detection

  •    Javascript

Detect the language of text.† - Based on the UDHR, the most translated document in the world.

jsinspect - Detect copy-pasted and structurally similar code

  •    Javascript

Detect copy-pasted and structurally similar JavaScript code. Requires Node.js 6.0+, and supports ES6, JSX as well as Flow. Note: the project has been mostly rewritten for the 0.10 release and saw several breaking changes.We've all had to deal with code smell, and duplicate code is a common source. While some instances are easy to spot, this type of searching is the perfect use-case for a helpful CLI tool.

mobile-detect.js - Device detection (phone, tablet, desktop, mobile grade, os, versions)

  •    Javascript

A loose port of Mobile-Detect to JavaScript. Another Demo/check (though without any styling) can be found here.

sentineljs - Detect new DOM nodes using CSS selectors (650 bytes)

  •    Javascript

SentinelJS is a tiny JavaScript library that lets you detect new DOM nodes using CSS selectors (650 bytes). SentinelJS uses dynamically-defined CSS animation rules (@keyframes) to hook into browser animationstart events when a new node matching a given CSS selector is added to the DOM. In general this should be more performant than using a Mutation Observer to watch the entire document tree for changes and iterating through all new child nodes recursively. SentinelJS performs one hash key lookup on calls to the animationstart event so the performance overhead is minimal. If you define the animation-name property on a CSS rule that overlaps with the selector in your SentinelJS watch function then only one of those animations will be called which could cause unexpected behavior. To get around this you can trigger SentinelJS watches from your CSS using custom animation names (see below).




devtools-detect - Detect if DevTools is open and its orientation

  •    HTML

Useful for when you want something special to happen when DevTools is open. Like pausing canvas, adding style debug info, etc.Doesn't work if DevTools is undocked and will show false positive if you toggle any kind of sidebar.

Crawler-Detect - 🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent

  •    PHP

CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent and http_from header. Currently able to detect 1,000's of bots/spiders/crawlers. Run composer require jaybizzle/crawler-detect 1.* or add "jaybizzle/crawler-detect" :"1.*" to your composer.json.

Detect.js - :mag: Library to detect browser, os and device based on the UserAgent String

  •    Javascript

❗️ NOTE: THIS PLUGIN IS NO LONGER MAINTAINED. If you encounter a bug then you're probably on your own. Try Bowser as an alternative. Note: Detect.js is a JavaScript library to detect platforms, versions, manufacturers and types based on the navigator.userAgent string. This code is based on, and modified from, the original work of Tobie Langel's UA-Parser: https://github.com/tobie/ua-parser. UA-Parser is subsequently a port of BrowserScope's user agent string parser.


Detect-It-Easy - Detect it Easy

  •    HTML

Detect It Easy, or abbreviated "DIE" is a program for determining types of files. "DIE" is a cross-platform application, apart from Windows version there are also available versions for Linux and Mac OS.

is-online - Check if the internet connection is up

  •    Javascript

Works in Node.js and the browser (with browserify/webpack).In the browser you have navigator.onLine, but it's useless as it only tells you if there's a local connection, and not whether the internet is accessible.

Detectizr - A Modernizr extension to detect device, device model, screen size, operating system, and browser details

  •    Javascript

Detection of these sets are optional and can be disabled. Detectable device types are: tv (includes smart tv and game console), mobile, tablet, and desktop. Device models of tv, mobile and tablet are being detected.

browscap - :page_with_curl: The main project repository

  •    PHP

This tool is used to build and maintain browscap files. There is actually only one cli command available.

within-viewport - JavaScript utility that determines whether an element is completely within the browser viewport

  •    Javascript

All of the above offer the same features. Although this plugin is still actively maintained, it will eventually be made obsolete by the Intersection Observer API. You can check the current state of browser compatibility at caniuse.com. Meanwhile, withinviewport will continue to work on current and legacy browsers.

nocycle.js - Detect cycle `require` in node.js.

  •    Javascript

nocycle is a tiny node module to detect cycle require. If a file a.js requires b.js while b.js also requires a.js directly or indirectly, nocycle will find the cycle.Install this module through npm.

DetectFont - Detect which font your system has cherry-picked from font-family.

  •    Javascript

Detect which font your system has cherry-picked from font-family.

ci-info - Get details about the current Continuous Integration environment

  •    Javascript

Get details about the current Continuous Integration environment.A string. Will contain the name of the CI server the code is running on. If not CI server is detected, it will be null.

run-node - Run the Node.js binary no matter what

  •    Shell

You can't always assume running $ node file.js will just work. The user might have the node binary in a non-standard location. They might be using a Node.js version manager like nvm, which is sourced in a subshell and not available from the outside. It also depends from where you're trying to run it. For example, GUI apps on macOS doesn't inherit the $PATH, so the node binary would not be found. Most projects that depend on Node.js just end up telling the user to manually set the full path to the node binary in some project specific settings. Now every project has to do this. Ugh... I prefer things to just work. With this module it will.This Bash script uses some tricks to find the Node.js binary on your system and run it.