1.3.4 • Published 4 years ago

iotdb-fetch v1.3.4

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
4 years ago

iotdb-fetch

Pipe oriented URL fetcher with cache

Notes

  • if you want to be able to deal with unusual (by Node.JS standards) charsets, install iconv or iconv-lite and this will use it

GET

Parameterized Quick Functions

Get a text document. The result will be a string

_.promise()
    .then(fetch.document.get("http://www.davidjanes.com/"))
    .make(sd => {
        assert.ok(_.is.String(sd.document))
        console.log(sd.document)
    })

Get a binary document. The result will be a Buffer. Note this is the same call as the text one, it just figures out the right thing to do.

_.promise()
    .then(fetch.document.get("https://via.placeholder.com/600/24f355"))
    .make(sd => {
        assert.ok(_.is.Buffer(sd.document))
    })

Get a JSON document. The result will be a JSON (Object)

_.promise()
    .then(fetch.json.get("http://jsonplaceholder.typicode.com/posts"))
    .make(sd => {
        assert.ok(_.is.JSON(sd.json))
    })

Contrib

Some third party code is directly included, to avoid package dependencies

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago