3.0.6 • Published 9 years ago

uri-resolver v3.0.6

Weekly downloads
6
License
BSD-2-Clause
Repository
github
Last release
9 years ago

npm semantic-release Build Status bithound codecov.io Coverage Status Code Climate Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs downloads Commitizen friendly

uri-resolver

resolves uris and provides fs like access

API Reference

get(url) ⇒ Promise

Creates a readable stream for the content of th file associated to a given file URL

Kind: global function
Fulfil: ReadableStream - of the file content

ParamTypeDescription
urlStringof the a file

stat(url) ⇒ Promise

Read stat of a file assiciacted to a given file URL

Kind: global function
Fulfil: Object - as delivered by fs.stat()
Reject: Error - if url is not a file url or fs.stat() error

ParamTypeDescription
urlStringof the a file

put(url) ⇒ Promise

Put content of a stream to a file assiciacted to a given file URL

Kind: global function
Fulfil: Void - undefined
Reject: Error - if url is not a file url

ParamTypeDescription
urlStringof the a file

delete(url) ⇒ Promise

Deletes the file assiciacted to a given file URL

Kind: global function
Fulfil: Void - undefined
Reject: Error - as delivered by fs.unlink()

ParamTypeDescription
urlStringof the a file

list(url) ⇒ Promise

List content of a directory

Kind: global function
Fulfil: String[] - file names
Reject: Error - as delivered by fs.readdir()

ParamTypeDescription
urlStringof the a directory

schemeForURI(uri) ⇒ URIScheme

get URIScheme for a given uri

Kind: global function
Returns: URIScheme - for a given uri

ParamType
uriString

install

With npm do:

npm install uri-resolver

license

BSD-2-Clause

3.0.6

9 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.1.11

9 years ago

2.1.10

9 years ago

2.1.9

9 years ago

2.1.8

9 years ago

2.1.7

9 years ago

2.1.6

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago