https://github.com/timche/cs-doppler-phase
Get the phase of a Counter-Strike 2 Doppler skin
https://github.com/timche/cs-doppler-phase
Last synced: about 1 month ago
JSON representation
Get the phase of a Counter-Strike 2 Doppler skin
- Host: GitHub
- URL: https://github.com/timche/cs-doppler-phase
- Owner: timche
- License: mit
- Created: 2024-04-02T18:07:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-24T08:00:36.000Z (11 months ago)
- Last Synced: 2025-08-09T04:05:25.188Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cs-doppler-phase
> Get the phase of a Counter-Strike Doppler skin
Based on `icon_url` of an item from Steam.
## Install
```sh
npm install cs-doppler-phase
```
## Usage
```ts
import { getDopplerPhase } from "cs-doppler-phase";
getDopplerPhase("-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpovbSsLQJfxPrMfipP7dezhr-KmsjwPKvBmm5D19V5i_rEpLPigVC7vCwwOj6rYJjHcAFtN1mB_1TryevvjJTu7p6bwHJjunIhsH6PzRzlgE0YbrA9gaSaVxzAUM53KYio")
// => phase1
getDopplerPhase("test")
// => null
```
## API
### `getDopplerPhase(iconUrl)`
Returns `Phase 1`, `Phase 2`, `Phase 3`, `Phase 4`, `Ruby`, `Sapphire` or `Black Pearl` if `iconUrl` matches a phase or `null` if not.
#### `iconUrl`
Type: `string`
The `icon_url` of the item from Steam.