0.0.6 • Published 6 years ago

local-or-remote v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

local-or-remote

Fetches a local or remote (http) resource

Installing

npm install --save local-or-remote

Usage

const loadFile = require('local-or-remote')

loadFile(resource, timeout).then((data) => {
	console.log(data);
});
  • timeout (opt.): integer containing the number of milliseconds to wait for a server to send response headers before aborting the request (if fetched from a remote resource). Default: 20000.
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago