
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
nuxt-jsonapi
Advanced tools
Easy JSON:API client integration for Nuxt.js
nuxt-jsonapi adds easy JSON:API client integration to Nuxt. It is a loose wrapper around the excellent Kitsu JSON:API client.
This module globally injects a $jsonApi instance you can use to access the client anywhere using this.$jsonApi. For plugins, asyncData, fetch, nuxtServerInit and Middleware, you can access it from context.$jsonApi.
nuxt-jsonapi dependency to your projectyarn add nuxt-jsonapi # or npm install nuxt-jsonapi
nuxt-jsonapi to the modules section of nuxt.config.js{
modules: [
// Simple usage
'nuxt-jsonapi',
// With options
[
'nuxt-jsonapi',
{
baseUrl: 'http://www.example.com/api'
/* other module options */
}
]
]
}
jsonapi object to your nuxt.config.js to configure module options:export default {
modules: ['nuxt-jsonapi'],
jsonapi: {
baseUrl: 'http://www.example.com/api'
/* other module options */
}
}
If you do not specify a baseUrl option, a default /jsonapi URL will be used. This is almost certainly not what you want so be sure it is set correctly.
Refer to Kitsu's excellent documentation for all the feature's the client offers.
You can access the client through this.$jsonApi or context.$jsonapi.
Example:
async fetch() {
this.articles = await this.$jsonApi.get('/article').then(articles => {
return articles.data
})
}
yarn install or npm installnpm run devCopyright (c) Patrick Cate
FAQs
Easy JSON:API client integration for Nuxt.js
The npm package nuxt-jsonapi receives a total of 42 weekly downloads. As such, nuxt-jsonapi popularity was classified as not popular.
We found that nuxt-jsonapi demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.