npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@basic-streams/of

1.0.0 • Public • Published

@basic-streams/of

of<T>(value: T): Stream<T>

Creates a stream containing the given value.

import of from "@basic-streams/of"
 
const stream = of(1)
 
stream(x => {
  console.log(x)
})
 
// > 1

install

npm i @basic-streams/of

Downloadsweekly downloads

15

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability