callbag-from-promise

WebJar for callbag-from-promise

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

callbag-from-promise
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

callbag-from-promise
WebJar for callbag-from-promise
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/staltz/callbag-from-promise

Download callbag-from-promise

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/callbag-from-promise/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>callbag-from-promise</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/callbag-from-promise/
implementation 'org.webjars.npm:callbag-from-promise:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/callbag-from-promise/
implementation ("org.webjars.npm:callbag-from-promise:1.0.0")
'org.webjars.npm:callbag-from-promise:jar:1.0.0'
<dependency org="org.webjars.npm" name="callbag-from-promise" rev="1.0.0">
  <artifact name="callbag-from-promise" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='callbag-from-promise', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "callbag-from-promise" % "1.0.0"
[org.webjars.npm/callbag-from-promise "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

callbag-from-promise

Convert a Promise to a callbag listenable source.

npm install callbag-from-promise

example

const fromPromise = require('callbag-from-promise');
const observe = require('callbag-observe');

const source = fromPromise(
  fetch('http://jsonplaceholder.typicode.com/users/1')
    .then(res => res.json())
);

observe(user => console.log(user.name))(source); // Leanne Graham

Versions

Version
1.0.0