Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cs2-inspect-create

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cs2-inspect-create

The package provides the ability to create a link to inspect a CS2 item using specified parameters

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

npm version npm downloads license

This module is designed to create a link to inspect an item in CS2.

Installing

From npm:

npm install cs2-inspect-create

From yarn:

yarn add cs2-inspect-create

Usage

import {
  generateHex,
  generateLink,
  generateGen,
  Rarity,
  itemIds,
  skinIds,
  stickerIds,
} from "cs2-inspect-create"; // or import cs2inspect from "cs2-inspect-create";

const link = generateLink({
  defindex: itemIds["AK-47"], // 7
  paintindex: skinIds["Aquamarine Revenge"], // 474
  paintseed: 306,
  paintwear: 0.6336590647697449,
  rarity: Rarity.COVERT, // 5
  stickers: [
    {
      slot: 3,
      stickerId: stickerIds["00 Nation | Rio 2022"], // 6025
      wear: 0,
    },
  ],
});

// retrun inspect link `steam://rungame/730/76561202255233023/+csgo_econ_action_preview%2000180720DA03280638FBEE88F90340B2026213080310021D00000000250000803F2D00000000503D5A64`

const hex = generateHex({
  defindex: 7,
  paintindex: 474,
  paintseed: 306,
  paintwear: 0.6336590647697449,
  rarity: Rarity.COVERT,
  stickers: [
    {
      slot: 3,
      stickerId: 2,
      wear: 0,
    },
  ],
});

// return hex `00180720DA03280638FBEE88F90340B2026213080310021D00000000250000803F2D00000000503D5A64`

const gen = generateGen({
  defindex: 7,
  paintindex: 474,
  paintseed: 306,
  paintwear: 0.6336590647697449,
  rarity: Rarity.COVERT,
  stickers: [
    {
      slot: 3,
      stickerId: 2,
      wear: 0,
    },
  ],
});

// return gen `!gen 7 474 306 0.6336590647697449 0 0 0 0 0 0 2 0 0 0`

Keywords

FAQs

Package last updated on 11 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc