Socket
Socket
Sign inDemoInstall

js-file-download

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-file-download - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

.eslintrc

10

js-file-download.d.ts

@@ -1,5 +0,7 @@

declare module "js-file-download" {
export default function fileDownload(data: string, filename: string, mime?:string): void;
declare module 'js-file-download' {
export default function fileDownload(
data: string | ArrayBuffer | ArrayBufferView | Blob,
filename: string,
mime?: string
): void;
}

14

package.json
{
"name": "js-file-download",
"version": "0.4.4",
"version": "0.4.5",
"description": "Javascript function that triggers browser to save javascript-generated content to a file",
"main": "file-download.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "eslint file-download.js",
"test": "npm run lint"
},

@@ -22,6 +23,9 @@ "repository": {

"bugs": {
"url": "https://github.com/Rhumbix/js-file-download/issues"
"url": "https://github.com/kennethjiang/js-file-download/issues"
},
"homepage": "https://github.com/Rhumbix/js-file-download",
"typings": "js-file-download.d.ts"
"homepage": "https://github.com/kennethjiang/js-file-download",
"typings": "js-file-download.d.ts",
"devDependencies": {
"eslint": "^5.8.0"
}
}
# Javascript File Download
[![NPM version][npm-badge]][npm] [![Build Status][travis-ci-image]][travis-ci-url]
[![Dependency Status][deps-badge]][deps]
[![devDependency Status][dev-deps-badge]][dev-deps]
[![peerDependency Status][peer-deps-badge]][peer-deps]
Javascript function to trigger browser to save data to file as if it was downloaded.

@@ -19,16 +13,1 @@

fileDownload(data, 'filename.csv');
[npm-badge]: http://badge.fury.io/js/react-download.svg
[npm]: http://badge.fury.io/js/react-download
[deps-badge]: https://david-dm.org/luqin/react-download.svg
[deps]: https://david-dm.org/luqin/react-download
[dev-deps-badge]: https://david-dm.org/luqin/react-download/dev-status.svg
[dev-deps]: https://david-dm.org/luqin/react-download#info=devDependencies
[peer-deps-badge]: https://david-dm.org/luqin/react-download/peer-status.svg
[peer-deps]: https://david-dm.org/luqin/react-download#info=peerDependencies
[travis-ci-image]: https://travis-ci.org/luqin/react-download.svg
[travis-ci-url]: https://travis-ci.org/luqin/react-download

Sorry, the diff of this file is not supported yet

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