New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@perdido/cocktails

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perdido/cocktails

Un paquete para obtener datos sobre cocteles

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@perdido/cocktails

Con este paquete podras obtener datos sobre cockteles.

Instalación

Utiliza npm para instalar el paquete:

npm install @perdido/cocktails

Uso

const { getRandomCocktail, searchCocktailByName } = require('@perdido/cocktails');

// Obtener un cóctel al azar
getRandomCocktail()
  .then(cocktail => {
    console.log('Cóctel obtenido al azar:', cocktail);
  })
  .catch(error => {
    console.error('Error al obtener el cóctel al azar:', error);
  });

// Buscar un cóctel por nombre
const cocktailName = 'margarita';
searchCocktailByName(cocktailName)
  .then(cocktails => {
    console.log(`Cócteles encontrados con el nombre "${cocktailName}":`, cocktails);
  })
  .catch(error => {
    console.error('Error al buscar el cóctel por nombre:', error);
  });

Creditos:

Todos los datos usados en este NPM es con la siguiente API

Keywords

FAQs

Package last updated on 18 Jul 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc