This package has been deprecated

Author message:

this package has been deprecated

purescript-milkis

1.0.0 • Public • Published

Purescript-Milkis

Build Status

A wrapper around node-fetch for fetch requests through Node.

Aptly named for the greatest soft drink of all time, Milkis.

Installation

npm install --save node-fetch

bower install --save purescript-milkis

Usage

See the tests

Example Usage

I use Milkis in my ytcasts project in order to download HTML from a Youtube page:

downloadCasts ::
  forall e.
  DBConnection ->
  Url ->
  Aff
    (Program e)
    (Array CastStatus)
downloadCasts conn (Url url) = do
  res <- text =<< fetch url defaultFetchOptions
  case getCasts res of
    Right casts -> for casts $ downloadCast conn
    Left e -> do
      errorShow e
      pure []

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i purescript-milkis

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • caddigital