3.0.6 • Published 2 days ago

it-all v3.0.6

Weekly downloads
20,435
License
Apache-2.0 OR MIT
Repository
github
Last release
2 days ago

it-all

codecov CI

Collects all values from an (async) iterable and returns them as an array

About

For when you need a one-liner to collect iterable values.

Example

import all from 'it-all'

// This can also be an iterator, etc
const values = function * () {
  yield * [0, 1, 2, 3, 4]
}

const arr = all(values)

console.info(arr) // 0, 1, 2, 3, 4

Async sources must be awaited:

const values = async function * () {
  yield * [0, 1, 2, 3, 4]
}

const arr = await all(values())

console.info(arr) // 0, 1, 2, 3, 4

Install

$ npm i it-all

Browser <script> tag

Loading this module through a script tag will make it's exports available as ItAll in the global namespace.

<script src="https://unpkg.com/it-all/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

@lodestar/beacon-node@solcial/clientlibp2p@everything-registry/sub-chunk-1939welownfs-migration@peopledata/minty@rosen-chains/ergo-explorer-network@rosen-chains/ergo-node-network@rsksmart/ipfs-cpinner-provider@saonetwork/model@plebbit/plebbit-js@pratikgohil.dev/stackos-v2contract-package@wnfs-wg/nest@waku/core@waku/peer-exchange@web3-storage/ucanto-name-system@tracelabs/kad-dht@types/it-all@smontero/hashed-confidential-docs@smontero/hashed-private-client-api@scribalous/ipld-cms@thebuidler/ipfs-deploy@sekmet/react-ipfs-uploader@vascosantos/ipfs-unixfs-importer@spike.land/ipfsgeesome-libs@zedvision/ipfsforestpm@xmader/ipfs-coreforagepm@zalastax/nolb-it-git-remote-igisgit-remote-ipfsgit-remote-ipfs-mamlibp2p-kad-dhtlibp2p-daemonmtcrawlee@dstack-js/libigisbygonz@cuser/core@cuser/reader@cypsela/sailplane-node@decloudlabs/stk-file-encryptor@decloudlabs/stk-v2@decloudlabs/videoencryption@decentology/hyperverse-storage-ipfs@feedloop/foundrymfdb@autismjs/protocol@dynasty-games/storagedatastore-oss@chainsafe/lodestar-dbhexo-deployer-pinatahipr-ipfsinterface-blockstore-testsinterface-datastore-testsinterface-ipfs-corechain-ipfs-unixfs-importer@compendia/ipfs-core@compendia/libp2p-commonjs@coobeet/react-driveknightxv-libp2pkotods-apikotods-ssbkubo-rpc-client@ceramicnetwork/core@chris.troutner/ipfs-http-server@chris.troutner/ipfs-message-port-serverhardhat-ipfs@chris.troutner/interface-ipfs-core@chris.troutner/ipfs-cli@chris.troutner/ipfs-core@chris.troutner/ipfs-core-utilsall-build@dreamcatcher-tech/interblock@dreamcatcher-ai/cliipfs-car-utilsipfs-cohostipfs-core-configipfs-core-skogardipfs-demoipfs-deployipfs-interopipfs-core-utilsipfs-car-vipfs-car-webpack-pluginipfs-http-serveripfs-unixfs-importeripfs-utilsipfs-message-port-serveripfs-mfs@douganderson444/ipld-car-txskiwistandjs-wakuit-sort@helia/bitswap@helia/interop@helia/routing-v1-http-api-client
3.0.6

2 days ago

3.0.5

3 days ago

3.0.4

5 months ago

3.0.3

9 months ago

3.0.2

12 months ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago