UNPKG

dota2-heroes

Version:
32 lines (21 loc) 700 B
# dota2-heroes > Get a random Dota 2 hero name. [![NPM][dota2-heroes-icon]][dota2-heroes-url] ## Last added hero ![Ringmaster](https://github.com/user-attachments/assets/bfe8789d-7918-47d1-bb16-dca5bcf7c6e0) ## Installation This package is distributed via npm: ``` npm install dota2-heroes ``` ## Usage ```javascript import { all, random } from 'dota2-heroes'; const allNames = all; const randomName = random(); const threeRandomNames = random(3); ``` ## Contributing [How to contribute](https://github.com/Den-dp/dota2-heroes/blob/master/CONTRIBUTING.md) [dota2-heroes-icon]: https://nodei.co/npm/dota2-heroes.svg?downloads=true [dota2-heroes-url]: https://npmjs.org/package/dota2-heroes