js-file-download
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -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; | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9
35
0
1
4297
1
13