Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
cowinator
Advanced tools
Readme
This is the package to get Cowin slots and stats by state/district.
Please refer API Documentation here.
Install using 'npm'
npm i cowinator
Install using 'yarn'
yarn add cowinator
import { Cowinator } from "cowinator";
const client = new Cowinator();
// List of states having state_id and state_name
client.getStates().then((states) => {
console.log(states);
});
// List of districts having district_id and district_name
const state_id = 2; // state_d:2 for 'Andhra Pradesh'
client.getDistricts(state_id).then((districts) => {
console.log(districts);
});
// Get stats for specified state
client.getStatsByState(state_id).then((stats) => {
console.log(stats);
});
const district_id = 571; // district_id:571 for 'Chennai'
// Get stats for specified state
client.getStatsByDistrict(district_id).then((stats) => {
console.log(stats);
});
// Get list of sessions for a district
client.findByDistrict(district_id).then((sessions) => {
console.log(sessions);
});
// Find state_id by search string
client.findStateByName("tamil").then((matchedState) => {
console.log(matchedState); // Will get state_id and state_name for 'tamil nadu'
});
// Find state_id by search string
client.findDistrictByName(state_id, "east").then((matchedDistrict) => {
console.log(matchedDistrict); // Will get district_id and district_name for 'East Godavari'
});
We can use this package in CLI.
Install for CLI
npm i -g cowinator
To get the stats for a state
cowinator andhra
To get the stats for a particular district in a state
cowinator "tamil nadu" --district chennai
To post the stats to the telegram channel.
Note: Please assign your bot token to 'TELEGRAM_BOT_TOKEN' as environment variable.
cowinator "tamil nadu" --district chennai --tgChannel "@channelname"
FAQs
This is the package to get Cowin slots and stats by state/district.
The npm package cowinator receives a total of 0 weekly downloads. As such, cowinator popularity was classified as not popular.
We found that cowinator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.