File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- By GabrielVz (@glytglobal)
2+ # Codigo creado por: GabrielVz (@glytglobal)
3+ # https://github.com/glytglobal
34*/
45
56import fetch from 'node-fetch'
67
78let handler = async ( m , { text } ) => {
8- if ( ! text ) throw '*γ βοΈ γ INGRESA EL TITULO O NOMBRE DEL SCRAPER DE NMPJS A BUSCAR*\n\n*β’ EJEMPLO:*\n> */npmjs yt-search*'
9+ if ( ! text ) throw `*[ βοΈ ] INGRESA EL TITULO O NOMBRE DEL SCRAPER DE NPMJS (NPM.ORG) A BUSCAR*`
910 let res = await fetch ( `http://registry.npmjs.com/-/v1/search?text=${ text } ` )
1011 let { objects } = await res . json ( )
11- if ( ! objects . length ) throw `γ βοΈ γ LA BUSQUEDA "${ text } " NO FUE ENCONTRADA`
12+ if ( ! objects . length ) throw `[ βοΈ ] LA BUSQUEDA "${ text } " NO FUE ENCONTRADA\n\nINTENTE CON OTRO TIPO DE RESULTADOS `
1213 let txt = objects . map ( ( { package : pkg } ) => {
1314 return `
1415 β° ππ¨π¦ππ«π: ${ pkg . name }
You canβt perform that action at this time.
0 commit comments