New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dyna-client-down-load

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

dyna-client-down-load

Download files from client

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

About

Download files from the browser.

Runs only on browsers.

Written in Typescript, runs everywhere.

Import

npm install dyna-client-down-load

Note: The npm package name is dyna-client-down-load and not dyna-client-download due to an npm restriction.

Use cases

  • Build some data on browser (csv, etc..) and download them without need of server.
  • Export data from client for debugging purposes.

Methods

dynaClientDownloadText = (filename: string, text: string): void

Downloads a file with text content.

dynaClientDownloadObject = (filename: string, data: any, compressed: boolean = false): void

Downloads a file with json format with the data of the data object.

Note: that the object should be able to be stringified.

The dynaClientDownloadObject method, adds the .json extension if needed.

Examples

dynaClientDownloadText("hello.txt", "Hello world!");
dynaClientDownloadObject("hello", {message: "Hello world!"});

FAQs

Package last updated on 14 Aug 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc