New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@aldoivan10/v-api-client

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

@aldoivan10/v-api-client

ApiClient for vue 3

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

⭐ v-api-client

v-api-client es un plugin para vue 3 que usa api-client.

📦 Instalación

npm i @aldoivan10/v-api-client
pnpm add @aldoivan10/v-api-client

📖 Uso

import { createApp } from "vue"
import { ApiClientPlugin } from "@aldoivan10/v-api-client"

const app = createApp(App)
app.use(ApiClientPlugin)
// ó
// app.use(ApiClientPlugin, { baseUrl: "http:...", ...options })

Composable

Se puede obtener la instancia de ApiClient mediante:

import { useApiClient } from "@aldoivan10/v-api-client/composable"

const client = useApiClient()

$api

O tambien acceder desde el template

// Component.vue

<template>
    <button type="button" @click="$api.get("url")"></button>
</template>

Licencia

Este proyecto está bajo la licencia MIT

Keywords

javascript

FAQs

Package last updated on 26 Apr 2025

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