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

@equal-games/game-scanner

v1.1.4

Published

Game Scanner for any launcher and OS

Downloads

19

Readme

Game Scanner

GitHub Workflow Status Crates.io npm (scoped)

Game Scanner for any launcher and OS.

Data structure

You can find the Rust data structure in prelude.rs, and the Javascript data structure in index.d.ts.

Launchers Support

OS

| Launcher | Multi-directories¹ | Windows | Linux | MacOS | | ---------- | ---------------------------------------- | ------- | ----- | ----- | | Amazon | ✅ | ✅ | ❌ | ❌ | | Blizzard | ❓ | ✅ | ❌ | ❌ | | Epic Games | ❌ | ✅ | ❌ | ✅ | | GOG | ❌ | ✅ | ❌ | ✅ | | Origin | ❌ | ✅ | ❌ | ✅ | | Riot Games | ❓ | ✅ | ❌ | ✅ | | Steam | ✅ | ✅ | ❌ | ✅ | | Ubisoft | ❌ | ✅ | ❌ | ❌ |

[1]: Multi-directories: is different game install locations (e.g., folders, and drivers).

Game Commands support

| Launcher | Install | Launch | Uninstall | | ---------- | ------- | ------ | --------- | | Amazon | ❌ | ✅ | ❌ | | Blizzard | ❌ | ✅ | ❌ | | Epic Games | ❌ | ✅ | ❌ | | GOG | ❌ | ✅ | ❌ | | Origin | ✅ | ✅ | ❌ | | Riot Games | ❌ | ✅ | ✅ | | Steam | ✅ | ✅ | ✅ | | Ubisoft | ✅ | ✅ | ✅ |

Game State support

| Launcher | Installed | Needs Update | Downloading | Total Bytes | Received Bytes | | ---------- | --------- | ------------ | ----------- | ----------- | -------------- | | Amazon | ❌ | ❌ | ❌ | ❌ | ❌ | | Blizzard | ❌ | ❌ | ❌ | ❌ | ❌ | | Epic Games | ❌ | ❌ | ❌ | ❌ | ❌ | | GOG | ❌ | ❌ | ❌ | ❌ | ❌ | | Origin | ❌ | ❌ | ❌ | ❌ | ❌ | | Riot Games | ❌ | ❌ | ❌ | ❌ | ❌ | | Steam | ✅ | ✅ | ✅ | ✅ | ✅ | | Ubisoft | ❌ | ❌ | ❌ | ❌ | ❌ |

Operations

| Launcher | List Games | Find Game¹ | Get launcher executable | | ---------- | ---------- | ------------------------ | ----------------------- | | Amazon | ✅ | ✅ | ✅ | | Blizzard | ✅ | ✅ | ✅ | | Epic Games | ✅ | ✅ | ✅ | | GOG | ✅ | ✅ | ✅ | | Origin | ✅ | ✅ | ✅ | | Riot Games | ✅ | ✅ | ✅ | | Steam | ✅ | ✅ | ✅ | | Ubisoft | ✅ | ✅ | ✅ |

[1]: Find Game: you can find for a specific game passing only the id.

Management

| Launcher | Launch | Get Processes | Close | | ---------- | ------ | ------------- | ----- | | Amazon | ✅ | ❓ | ❓ | | Blizzard | ✅ | ❓ | ❓ | | Epic Games | ✅ | ❓ | ❓ | | GOG | ✅ | ❓ | ❓ | | Origin | ✅ | ❓ | ❓ | | Riot Games | ✅ | ❓ | ❓ | | Steam | ✅ | ✅ | ✅ | | Ubisoft | ✅ | ❓ | ❓ |

[1]: Game Processes: return a list with all Id or PID of processes from a specific game.

Requirements

  • Rust
    • cargo >= v1.49.0
    • rustup >= v1.23.1
    • rustc >= v1.49.0

NodeJS Binding

Usage

List games

const game_scanner = require("@equal-games/game-scanner");

const games = game_scanner.steam.games();

// [{
//     _type: 'steam',
//     id: '945360',
//     name: 'Among Us',
//     path: 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\Among Us',
//     commands: { install: [Array], launch: [Array], uninstall: [Array] },
//     state: {
//         installed: true,
//         needs_update: true,
//         downloading: true,
//         total_bytes: 39626416,
//         received_bytes: 0
//     }
// }]

Find game

const game_scanner = require("@equal-games/game-scanner");

const games = game_scanner.steam.find('945360');

// {
//     _type: 'steam',
//     id: '945360',
//     name: 'Among Us',
//     path: 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\Among Us',
//     commands: { install: [Array], launch: [Array], uninstall: [Array] },
//     state: {
//         installed: true,
//         needs_update: true,
//         downloading: true,
//         total_bytes: 39626416,
//         received_bytes: 0
//     }
// }

Install/Uninstall game

const game_scanner = require("@equal-games/game-scanner");

const game = game_scanner.steam.games().find(game => !game.state.installed);

game_scanner.mananger.install_game(game);

game_scanner.mananger.uninstall_game(game);

Launch/Close game

const game_scanner = require("@equal-games/game-scanner");

const game = game_scanner.steam.games().find(game => game.state.installed);

game_scanner.mananger.launch_game(game);
// After 30 seconds
game_scanner.mananger.close_game(game);

Requirements

  • Visual Studio >= 2019
    • Desktop Development with C++
      • MSVC >= v142
      • Windows 10 SDK >= 10.0.18362.0
  • Node
    • node >= 12.20.0
    • npm >= 6.14.8
  • windows-build-tools >= 5.2.2
    • npm config set msvs_version 2019
    • npm config set python python2.7

Resources

Code of Conduct

If you are interested in contributing to the project, please take a look at the Code of Conduct.

License

This project is licensed under the terms of the MIT license.