You've already forked careful-downloader
mirror of
https://github.com/jakejarvis/careful-downloader.git
synced 2025-06-27 17:25:42 -04:00
rename package to careful-downloader
This commit is contained in:
14
README.md
14
README.md
@ -1,23 +1,23 @@
|
|||||||
# 🕵️♀️ careful-download
|
# 🕵️♀️ careful-downloader
|
||||||
|
|
||||||
[](https://github.com/jakejarvis/careful-download/actions/workflows/ci.yml)
|
[](https://github.com/jakejarvis/careful-downloader/actions/workflows/ci.yml)
|
||||||
[](https://www.npmjs.com/package/careful-download)
|
[](https://www.npmjs.com/package/careful-downloader)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
Downloads a file and its checksums to a temporary directory, validates the hash, and optionally extracts it if safe. A headache-averting wrapper around [`got`](https://github.com/sindresorhus/got), [`sumchecker`](https://github.com/malept/sumchecker), and [`decompress`](https://github.com/kevva/decompress).
|
Downloads a file and its checksums to a temporary directory, validates the hash, and optionally extracts it if safe. A headache-averting wrapper around [`got`](https://github.com/sindresorhus/got), [`sumchecker`](https://github.com/malept/sumchecker), and [`decompress`](https://github.com/kevva/decompress).
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install careful-download
|
npm install careful-downloader
|
||||||
# or...
|
# or...
|
||||||
yarn add careful-download
|
yarn add careful-downloader
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import downloader from "careful-download";
|
import downloader from "careful-downloader";
|
||||||
|
|
||||||
await downloader(
|
await downloader(
|
||||||
"https://github.com/gohugoio/hugo/releases/download/v0.88.1/hugo_extended_0.88.1_Windows-64bit.zip",
|
"https://github.com/gohugoio/hugo/releases/download/v0.88.1/hugo_extended_0.88.1_Windows-64bit.zip",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "careful-download",
|
"name": "careful-downloader",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "🕵️♀️ Downloads a file and its checksums to a temporary directory, validates the hash, and optionally extracts it if safe.",
|
"description": "🕵️♀️ Downloads a file and its checksums to a temporary directory, validates the hash, and optionally extracts it if safe.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/jakejarvis/careful-download",
|
"homepage": "https://github.com/jakejarvis/careful-downloader",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jake Jarvis",
|
"name": "Jake Jarvis",
|
||||||
"email": "jake@jarv.is",
|
"email": "jake@jarv.is",
|
||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/jakejarvis/careful-download.git"
|
"url": "https://github.com/jakejarvis/careful-downloader.git"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": "./index.js",
|
"exports": "./index.js",
|
||||||
|
Reference in New Issue
Block a user