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

fslockjs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fslockjs - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

src/File/methods/download.js

14

docs/File.md

@@ -15,2 +15,16 @@ ## File API

#### async File.download(uri, [outputPath])
Used to download a file over http or https.
- outputPath - Not required, when provided, will store at the requested location.
```js
const uri = 'http://w3c.github.io/csvw/tests/test001.json';
const data = await File.download(uri);
await File.download(uri, 'test0001.json');
```
#### async File.ensure(path)

@@ -17,0 +31,0 @@

2

package.json
{
"name": "fslockjs",
"version": "1.0.0",
"version": "1.1.0",
"description": "Easy to use file system queue with locking and events. Provide Asynchronous utilities for Directories and File",

@@ -5,0 +5,0 @@ "main": "index.js",

# FSLockJS
[![NPM Version](https://img.shields.io/npm/v/fslock.svg?&style=flat-square)](https://www.npmjs.org/package/fslock)
[![Build Status](https://api.travis-ci.org/Alex-Werner/fslock.svg?branch=master)](https://travis-ci.com/Alex-Werner/fslock)
[![NPM Version](https://img.shields.io/npm/v/fslockjs.svg?&style=flat-square)](https://www.npmjs.org/package/fslockjs)
[![Build Status](https://api.travis-ci.org/Alex-Werner/fslockjs.svg?branch=master)](https://travis-ci.com/Alex-Werner/fslockjs)

@@ -6,0 +6,0 @@

const File = {};
File.append = require('./methods/append').bind(File);
File.create = require('./methods/create').bind(File);
File.download = require('./methods/download').bind(File);
File.exists = require('./methods/exists').bind(File);

@@ -5,0 +6,0 @@ File.ensure = require('./methods/ensure').bind(File);

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