# download **Repository Path**: ulia/download ## Basic Information - **Project Name**: download - **Description**: file downloading using client-side javascript - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # download [![NPM version][npm-image]][npm-url] [![Size][size-image]][size-url] [![License][license-image]][license-url] [![CDNJS](https://img.shields.io/cdnjs/v/downloadjs.svg)](https://cdnjs.com/libraries/downloadjs) ## Summary --------- The download() function is used to trigger a file download from JavaScript. It specifies the contents and name of a new file placed in the browser's download directory. The input can be a URL, String, Blob, or Typed Array of data, or via a dataURL representing the file's data as base64 or url-encoded string. No matter the input format, download() saves a file using the specified file name and mime information in the same manner as a server using a Content-Disposition HTTP header. ## Getting and Using --------- ### Via NPM/Bower `npm install downloadjs`
`bower install downloadjs` `require("downloadjs")(data, strFileName, strMimeType);` ### Simple global `download` function via `