Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
data-bharat
Advanced tools
Get states,districts,Ut's and capitals etc,you'll get data in raw/stringified JSON format
//Using npm
npm install data-bharat
//Using yarn
yarn add data-bharat
const call = require('./dataIndia')
//Or directly import the method name
//No param defaults to raw JSON data
console.log(call.getRawData())
//Param y for stringify data
console.log(call.getRawData('y'))
//Param n for raw data
console.log(call.getRawData('n'))
const call = require('./dataIndia')
//Or directly import the method name
//No param defaults to raw JSON data
console.log(call.statesWithAbbr())
//Param y for stringify data
console.log(call.statesWithAbbr('y'))
//Param n for raw data
console.log(call.statesWithAbbr('n'))
const call = require('./dataIndia')
//Or directly import the method name
//Valid use #1,return raw json
console.log(call.stateWithAbbr('Assam'))
//Valid use #2,return json stringified
console.log(call.stateWithAbbr('Assam','y'))
//Valid use #3,return raw json
console.log(call.stateWithAbbr('Assam','n'))
You can get more documentation while using the method on hover
FAQs
A list of states,uts,districts and other information of India
We found that data-bharat 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.