Socket
Socket
Sign inDemoInstall

daolnwod

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    daolnwod

[![CircleCI](https://circleci.com/gh/sosukesuzuki/daolnwod.svg?style=svg)](https://circleci.com/gh/sosukesuzuki/daolnwod) [![npm version](https://badge.fury.io/js/daolnwod.svg)](https://badge.fury.io/js/daolnwod) [![code style: prettier](https://img.shi


Version published
Weekly downloads
7
Maintainers
1
Install size
4.41 kB
Created
Weekly downloads
 

Readme

Source

daolnwod

CircleCI npm version code style: prettier

Download images from url.

Installation

$ npm install --save daolnwod

Usage

If you want to download my icon image( https://avatars0.githubusercontent.com/u/14838850?s=460&v=4 ), you can write like below:

const daolnwod = reuqire("daolnwod");

daolnwod(
  "https://avatars0.githubusercontent.com/u/14838850?s=460&v=4",
  "./sosukesuzuki.jpg"
);

First argument is the image url you want to get. Second argument is the path you want to download the image to.

Also, daolnwod returns Promise<void>. So, you can write like below:

const daolnwod = reuqire("daolnwod");

daolnwod("https://avatars0.githubusercontent.com/u/14838850?s=460&v=4", "./sosukesuzuki.jpg")
  .then(() => {
    console.log("Successed");
  });
  .catch(error => {
    console.error("Failed");
  })

LICENSE

MIT

FAQs

Last updated on 29 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc