Socket
Book a DemoInstallSign in
Socket

nuxt-secure-files

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-secure-files

Embed images and download files securely via API requests

latest
Source
npmnpm
Version
1.0.2-alpha
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Add nuxt-secure-files dependency to your project:
npm install nuxt-secure-files
  • Add nuxt-secure-files module to nuxt.config.js:
export default {
  // ...other config options
  modules: ["nuxt-secure-files"];
}
  • (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).

FAQs

Package last updated on 25 May 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.