Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
¿Cómo verificar si un repositorio de github tiene paquetes sin usar?

Escribí el siguiente código en Node.js:

 const axios = require("axios"); const prompt = require("prompt-sync")(); let numRepo = prompt("Welcome, How many repositories to search? "); numRepo = parseInt(numRepo); while (!Number.isInteger(numRepo)) numRepo = parseInt(prompt("Please insert integer: ")); let n; if (numRepo < 100) n = 1; else n = numRepo % 100; axios .get( `https://api.github.com/search/repositories?q=language:js&sort=stars&order=desc&per_page=${numRepo}&page=${n}` ) .then((response) => { let repo = []; response.data.items.forEach((e) => repo.push(e)); console.log(repo); }) .catch((error) => { console.log(error); });

Usé la APi de búsqueda de GitHub, y mi objetivo es escribir una función cuyo propósito es verificar para cada repositorio cuántos paquetes sin usar tiene. ¿Cómo se puede hacer esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!