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.
hubeau-api
Advanced tools
HUBEAU API wrapper JS.
Infos sur l'API HUBEAU : https://hubeau.eaufrance.fr/page/apis
Travail en cours...
yarn add hubeau-api
ou
npm install --save hubeau-api
ensuite importation de la dépendance :
import HubeauApi from 'hubeau-api';
const hubMedApi = new HubeauApi();
ou
const HubeauApi = require('hubeau-api');
const hubMedApi = new HubeauApi();
documentation api : https://hubeau.eaufrance.fr/page/api-poisson
Code espèce poisson
async function code_espece_poisson() {
const params={
code: "ABL",
fields: "",
page: 1,
size: 1,
}
try {
const results = await hubeauApi.etatPiscicole.codeEspecePoisson(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
async function code_espece_poisson_csv() {
const params={
code: "ABL",
fields: "",
page: 1,
size: 1,
}
try {
const results = await hubeauApi.etatPiscicole.codeEspecePoissonCsv(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
Lieux pêche
async function lieux_peche() {
const params = {
code_espece_poisson: 'ABL',
bbox: [1.6194, 47.7965, 2.191, 47.9988],
};
try {
const results = await hubeauApi.etatPiscicole.lieuxPeche(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
async function lieux_peche_csv() {
const params = {
code_espece_poisson: 'ABL',
bbox: [1.6194, 47.7965, 2.191, 47.9988],
};
try {
const results = await hubeauApi.etatPiscicole.lieuxPecheCsv(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
Poissons
async function poissons() {
const params = {
code_espece_poisson: ['ABL', 'ECR', 'ABI'],
page: 1,
fields: ['code_station', 'localisation'],
};
try {
const results = await hubeauApi.etatPiscicole.poissons(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
async function poissons_csv() {
const params = {
code_espece_poisson: ['ABL', 'ECR', 'ABI'],
page: 1,
fields: ['code_station', 'localisation'],
};
try {
const results = await hubeauApi.etatPiscicole.poissonsCsv(params);
console.log(results);
} catch (error) {
console.log(error);
}
}
FAQs
hubeau api wrapper in javascript
The npm package hubeau-api receives a total of 4 weekly downloads. As such, hubeau-api popularity was classified as not popular.
We found that hubeau-api 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.