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

valorant-fetch

v3.1.1

Published

Provides information about valorant agents and maps.

Downloads

30

Readme

Hello Welcome to the Module Made for Valorant!

● Hello, this module aims to provide you with up-to-date information about agents and maps in the valorant.

● Using this module, you can access many more data such as map infos, agent stories, in-game skills, costs of skills, videos of skills and more..

You can do the attached sample to get the information.

Get Agent
const { getAgent } = require("valorant-fetch");

const data = getAgent("omen");

console.log(data); // Returns the omen information as objects
console.log(data.biography); // Returns the omen's biography as an object
Get Map
const { getMap } = require("valorant-fetch");

const data = getMap("split");

console.log(data); // Returns the split information as objects
console.log(data.photos); // Returns the split photos as an array in the object

Example Usage Screenshot

Example Usage

Example OUTPUT for raze agent
{
  "id": "key/o",
  "key": "16",
  "name": "KEY/0",
  "tags": ["INITIATOR"],
  "stats": {
    "P": "NONE",
    "Q": "FLASH/DRIVE",
    "E": "ZERO/POINT",
    "C": "FRAG/MENT",
    "X": "NULL/CMD"
  },
  "photos": {
    "icon": "https://static.wikia.nocookie.net/valorant/images/f/f0/KAYO_icon.png",
    "q_icon": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt83e92ae578e66b8e/60d204231e0505677a882f38/Q_FlashDrive.png",
    "e_icon": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt496288e7ab899b47/60d2018db930a53616fa4882/E_ZeroPoint.png",
    "c_icon": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blte671cefaedb07d26/60d2046483f9fe49a6fef713/C_FragMent.png",
    "x_icon": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/bltead1f4cb9ad32e19/60d20208bcec595109d831c2/X_NullCmd.png",
    "tag_icon": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt2965c8a8dce0467d/5eaa0685e6f6795e530a1cbe/Initiator.png"
  },
  "videos": {
    "q_video": "https://assets.contentstack.io/v3/assets/bltb6530b271fddd0b1/bltab2fead35a9b412d/60cce5d49b520349ac9d080d/KAYO_C_v002_web.mp4",
    "e_video": "https://assets.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt11ab79d777cba68e/60cce41a07060a4ae3f12ff1/KAYO_E_v002_web.mp4",
    "c_video": "https://assets.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt6372c1b58baf8ca2/60cce401ae0d50495b4f7e31/KAYO_Q_v001_web.mp4",
    "x_video": "https://assets.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt6cd3a6f6e99152f8/60cce43683f9fe49a6fee835/KAYO_X_v003_web.mp4"
  },
  "descriptions": {
    "q_desc": "EQUIP a flash grenade. FIRE to throw. The flash grenade explodes after a short fuse, blinding anyone in line of sight.",
    "e_desc": "EQUIP a suppression blade. FIRE to throw. The blade sticks to the first surface it hits, winds up, and suppresses anyone in the radius of the explosion.",
    "c_desc": "EQUIP an explosive fragment. FIRE to throw. The fragment sticks to the floor and explodes multiple times, dealing near lethal damage at the center with each explosion.",
    "x_desc": "INSTANTLY overload with polarized radianite energy that empowers KAY/O and causes large energy pulses to emit from his location. Enemies hit with these pulses are suppressed for a short duration."
  },
  "costs": {
    "q_cost": "250",
    "e_cost": "FREE",
    "c_cost": "200",
    "x_cost": "7 Ulti Point"
  },
  "charges": {
    "q_charges": "2",
    "e_charges": "1",
    "c_charges": "1",
    "x_charges": "1"
  },
  "biography": {
    "story": "KAY/O is a machine of war built for a single purpose: neutralizing radiants. His power to suppress enemy abilities cripples his opponents' capacity to fight back, securing him and his allies the ultimate edge.",
    "agent_about": "His body, arms, and head are made of metal. His legs are made out of what appears to be a combination of metal and leather. Parts of his body have electricity and energy visible, these parts include his forearms, the middle of his chest, and the sides of his legs.",
    "saying": "We have one job; save this Earth. No excuses.",
    "gender": "Male",
    "region": ["Alternate Timeline Earth", "Future"]
  }
}
Example OUTPUT for split map
{
  "id": "split",
  "key": "5",
  "name": "Split",
  "photos": {
    "minimap": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt2caea7a88362d6aa/5ecd64b0817e574fa1dcc162/split-minimap-2.png",
    "minimap_2": "https://static.wikia.nocookie.net/valorant/images/f/f2/Split_mini-map.png/revision/latest?cb=20200408012547",
    "screenshot_1": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt643d33e2defb855c/5eabe9fe248a28605479c547/split1.jpg",
    "screenshot_2": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/blt8114d8ae57703cf8/5ed81946bf4ae52c761ec8e8/split2-2.jpg",
    "screenshot_3": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/bltdfd43bd79d9b3410/5eabe9fea20afe612d82f833/split3.jpg",
    "screenshot_4": "https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/bltf7a4f75409f2dbc1/5ed81936047b8c2b9c25fe74/split4-2.jpg"
  },
  "informations": {
    "about_map": "If you want to go far, you’ll have to go up. A pair of sites split by an elevated center allows for rapid movement using two rope ascenders. Each site is built with a looming tower vital for control. Remember to watch above before it all blows sky-high.",
    "coordinate": ["35°41'N139°41'E", "Japan"],
    "callouts": [
      "A Site",
      "B Site",
      "Alley",
      "Back",
      "Bottom",
      "Garage",
      "Link",
      "Lobby",
      "Mail",
      "Main",
      "Rafters",
      "Ramps",
      "Screens",
      "Sewer",
      "Site",
      "Spawn",
      "Stairs",
      "Top",
      "Tower",
      "Vent"
    ]
  }
}

WARNING!!

If you get an error, you can come to our discord support server below.

Support Server

Changelog

3.1.1 - Added type for fracture.
3.1.0 - Added new Fracture map and fixed some problems.
3.0.1 - It's last publish for this sesson i promise :(.
3.0.0 - I'am an idiot :(.
2.0.5 - TSC problems are fixed.
2.0.2 - Map images fixed.
2.0.1 - Bugs fixed.
2.0.0 - Some Changes for Agents, Types and Functions.
1.0.6 - Bugs fixed.
1.0.5 - README.md Update and bugs fix
1.0.4 - README.md Update, Characters update, Maps update, Removed agent skills, TypeScript rewrite
1.0.3 - README.md Update
1.0.2 - README.md Update
1.0.1 - README.md Update
1.0.0 - Module published.