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

1.0.2-alpha • Public • Published

nuxt-secure-files

Embed images and download files securely via API requests

Main features

  • Download Base64 files
  • Directive for embedding images (WIP)
  • TypeScript support

Setup

  1. Add nuxt-secure-files dependency to your project:
npm install nuxt-secure-files
  1. Add nuxt-secure-files module to nuxt.config.js:
export default {
  // ...other config options
  modules: ["nuxt-secure-files"];
}
  1. (Optional) TypeScript support. Add nuxt-secure-files to the types section of tsconfig.json:
{
  "compilerOptions": {
    "types": ["nuxt-secure-files"]
  }
}

Usage

{
  methods: {
    downloadFile() {
        this.$secDownload('/api/file/xx', 'file_xx.pdf');
    }
  }
}

License

See the LICENSE file for license rights and limitations (MIT).

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-secure-files

Weekly Downloads

5

Version

1.0.2-alpha

License

MIT

Unpacked Size

4.93 kB

Total Files

9

Last publish

Collaborators

  • dogchef-tech