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

daolnwod

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 29 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc