Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
A npm package for Clash Royale that consumes clashapi using trae to provide information about the game.
Consume the API to get all the information you need.
$ npm install --save clashapi
$ yarn add clashapi
If you are not using trae (Pro tip: give it a try):
import clashapi from 'clashapi'
clashapi.chests()
.then(...)
If you are using that awesome library:
import trae from 'trae'
import clashapiFactory from 'clashapi/factory'
const clashapi = clashapiFactory(trae)
clashapi.chests()
.then(...)
Method | Description |
---|---|
clashapi.arenas() | All Arenas information |
clashapi.arenas(:id) | Single Arena information |
clashapi.arenas(:idName) | Single Arena information |
clashapi.cards | All Cards information |
clashapi.cards(:id) | Single Card information |
clashapi.cards(:idName) | Single Card information |
clashapi.chests | All Chests information |
clashapi.chests(:id) | Single Chest information |
clashapi.chests(:idName) | Single Chest information |
clashapi.leagues | All Leagues information |
clashapi.leagues(:id) | Single League information |
clashapi.leagues(:idName) | Single League information |
clashapi.players | All Players levels information |
clashapi.players(:id) | Player level information |
clashapi.players(:idName) | Player level information |
clashapi
.chests() // returns all chests
clashapi
.cards('royale-giant') // returns information about the royale giant
clashapi
.leagues() // returns all the leagues
.then(leagues => leagues[0]._id) // returns the first league id
.then(clashapi.leagues) // returns the information for the first league, sending the id to the API
Create an issue to report bugs or give suggestions on how to improve this project.
If you like the package, please star this repository and/or the API repository.
If you create an app using this package, please mention that you are using clashapi and add your app to the table on the API repository.
If you want to contribute to the package, feel free to create a pull request.
If you ❤️ the API, help me pay the API hosting!
FAQs
A module to consume clashapi.xyz
The npm package clashapi receives a total of 4 weekly downloads. As such, clashapi popularity was classified as not popular.
We found that clashapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.