Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-file-downloader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-file-downloader - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

14

package.json
{
"name": "better-file-downloader",
"version": "1.0.5",
"version": "1.0.6",
"main": "dist/index.js",

@@ -28,7 +28,2 @@ "module": "dist/better-file-downloader.esm.js",

"peerDependencies": {},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {

@@ -41,9 +36,8 @@ "printWidth": 80,

"devDependencies": {
"@types/jest": "27.4.1",
"husky": "7.0.4",
"@types/jest": "28.1.1",
"tsdx": "0.14.1",
"tslib": "2.3.1",
"typescript": "4.6.3"
"tslib": "2.4.0",
"typescript": "4.7.3"
},
"dependencies": {}
}

@@ -11,7 +11,13 @@ # Downloader

### Install
```bash
npm install better-file-downloader
```
### Examples
```js
import { downloadAUrl } from 'better-file-downloads';
const { downloadAUrl } = require('better-file-downloads');
import { downloadAUrl } from 'better-file-downloader';
const { downloadAUrl } = require('better-file-downloader');

@@ -31,6 +37,6 @@ await downloadAUrl(

```js
import { downloadABlob } from 'better-file-downloads';
const { downloadABlob } = require('better-file-downloads');
import { downloadABlob } from 'better-file-downloader';
const { downloadABlob } = require('better-file-downloader');
await downlodownloadABlobadAUrl(yourBlob, {
await downloadABlob(yourBlob, {
fileName: 'my-new-file',

@@ -44,3 +50,3 @@ extension: '.pdf',

import React from 'react';
import { downloadAUrl } from 'better-file-downloads';
import { downloadAUrl } from 'better-file-downloader';

@@ -47,0 +53,0 @@ export default function example() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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