Comparing version 1.0.0 to 1.1.0
@@ -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 @@ |
{ | ||
"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); |
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances 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
32878
40
804
10
2