Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Simple wrapper for Airly API
$ npm install airly
const Airly = require('airly');
const airly = new Airly('API_KEY');
(async () => {
try {
const data = await airly.idInfo(240);
console.log(data);
} catch (error) {
console.log(error);
}
})();
Check out the
examples
folder :rocket:
Constructor for other operations
key
Type: string
Your Airly API key. You can obtain one here.
language
Type: string
Default: en
Get air quality descriptions in specified language. Currently supported languages are English ('en' - default) and Polish ('pl').
For more information check out Airly's documentation
Returns pollution data from the specified installation
id
Type: number
Unique number of the installation
Returns information about the specified installation
id
Type: number
Unique number of the installation
Returns information about 3 nearest installations (including their ID's)
lat
Type: number
Latitude
lng
Type: number
maxDistanceKM
Type: number
Default: 3
All the returned installations must be located within this limit from the given point (in km); negative value means no limit.
maxResults
Type: number
Default: -1
Maximum number of installations to return; negative value means no limit.
Returns measurements for an installation closest to a given location.
lat
Type: number
Latitude
lng
Type: number
Longitude
maxDistanceKM
Type: number
Default: 3
All the returned installations must be located within this limit from the given point (in km); negative value means no limit.
Returns measurements for any geographical location. Measurement values are interpolated by averaging measurements from nearby sensors (up to 1,5km away from the given point)
lat
Type: number
Latitude
lng
Type: number
Longitude
MIT © Antoni Kepinski
FAQs
Simple wrapper for Airly API, works in Node.js & the browser.
The npm package airly receives a total of 37 weekly downloads. As such, airly popularity was classified as not popular.
We found that airly 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.