nuxt-pdfmake
TypeScript icon, indicating that this package has built-in type declarations

0.0.19 • Public • Published

Cover

Nuxt PDFMake

npm version npm downloads License Nuxt

Easily add pdfMake to your Nuxt 3 application.

Documentation

See the documentation here: Nuxt PDFMake

Quick Setup

  1. Add nuxt-pdfmake dependency to your project
# Using pnpm
pnpm add -D nuxt-pdfmake

# Using yarn
yarn add --dev nuxt-pdfmake

# Using npm
npm install --save-dev nuxt-pdfmake
  1. Add nuxt-pdfmake to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: ["nuxt-pdfmake"],
});

That's it! You can now use Nuxt PDFMake in your Nuxt app ✨.

Usage

You can use the $pdfMake variable inside a function

const { $pdfMake } = useNuxtApp();

Or you can use the usePDFMake composable

const pdfMake = usePDFMake();

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

Package Sidebar

Install

npm i nuxt-pdfmake

Weekly Downloads

123

Version

0.0.19

License

MIT

Unpacked Size

11.9 kB

Total Files

15

Last publish

Collaborators

  • baybreezy