The name of the Spoon to install
source is a GitHub repository ("owner/repo" or its https://github.com/... URL) or the https:// URL of a zip file. ref is a branch, tag or commit to install from (GitHub only; the default branch if omitted). sha256 is the expected SHA-256 of the download. force: true replaces a Spoon that's already installed, rather than failing.
Resolves with the installed Spoon's details
Download a Spoon and install it into the
Spoonsdirectory. It isn't loaded: callhs.spoons.load()(or usehs.spoons.use(), which does both) once it's installed. The source is downloaded as a zip file. Its Spoons are every*.spoon2directory at its top level or in aSpoonsdirectory, or, if there are none, the whole archive, if it's a single Spoon. An archive that holds a single directory, as a repository's does, is looked inside. The Promise rejects with anErrorwhosecodesays what went wrong:EINVALIDARG,ENOTFOUND(no such repository, ref, URL, or Spoon in the archive),ENETWORK,EINTEGRITY(the download didn't matchsha256),EINVALIDSPOON,EEXISTS, orEIO(for anything else, such as failing to write the Spoon to disk).