New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

csformat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csformat

The only package you need to format CS2 item queries into the Steam Market format

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

CSFormat

CSFormat is the only package you need to format CS2 item queries into the Steam Market format.

Supported item types

  • Weapons
  • Gloves
  • Knives
  • Stickers
  • Cases
  • Case Keys
  • Music Kits
  • Music Kit Boxes
  • Patches
  • Graffiti
  • Pins

Installation

npm install csformat

Usage

Example:

const MarketHashNameBuilder = require("csformat");

const builder = new MarketHashNameBuilder();

const result = builder.build("karambit doppler fn");

console.log(result); // -> "★ Karambit | Doppler (Factory New)"

Testing

npm test

Reporting bugs/wrong formatting

If you find any bugs or wrong formatting, please open an issue on the GitHub repository.

TODO

  • Add support for

    • Agents
    • Souvenir Packages
    • Zeus x27
    • Gifts
    • Passes
    • Tools
    • Name tags
  • Rewrite in TypeScript

  • Add more tests

  • Add formatting string list

LICENSE

CSFormat is licensed under the MIT License. See LICENSE for more information.

Keywords

CS2

FAQs

Package last updated on 04 Apr 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