better-file-downloader
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"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
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
4
71
200714