3.0.6 • Published 7 years ago

uri-resolver v3.0.6

Weekly downloads
6
License
BSD-2-Clause
Repository
github
Last release
7 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

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.11

7 years ago

2.1.10

7 years ago

2.1.9

7 years ago

2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

8 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago