1.6.2 • Published 1 day ago

@azure/core-paging v1.6.2

Weekly downloads
264,714
License
MIT
Repository
-
Last release
1 day ago

Azure Core Paging client library for JS

This library provides core types for paging async iterable iterators.

Getting started

Installation

If using this as part of another project in the azure-sdk-for-js repo, then run rush install after cloning the repo.

Otherwise, use npm to install this package in your application as follows

npm install @azure/core-paging

Key concepts

You can find an explanation of how this repository's code works by going to our architecture overview.

Examples

Example of building with the types:

  public listSecrets(
    options?: ListSecretsOptions
  ): PagedAsyncIterableIterator<SecretAttributes> {
    const iter = this.listSecretsAll(options);
    return {
      async next() {
        const item = (await iter.next()).value;
        return item ? { done: false, value: item } : { done: true, value: undefined };
      },
      [Symbol.asyncIterator](https://github.com/Azure/azure-sdk-for-js/tree/812e2f0549cc45256f393ee2024339c477aad021/sdk/core/core-paging) { return this; },
      byPage: (settings: PageSettings = {}) => this.listSecretsPage(settings, options),
    };
  }

And using the types:

  for await (let page of client.listSecrets().byPage({ pageSize: 2 })) {
    for (const secret of page) {
      console.log("secret: ", secret);
    }
  }

Next steps

Try out this package in your application when dealing with async iterable iterators and provide feedback!

Troubleshooting

Log an issue at https://github.com/Azure/azure-sdk-for-js/issues

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Impressions

@azure/service-bus@azure/keyvault-keys@azure/keyvault-certificates@everything-registry/sub-chunk-107dw-autorest-typescriptdw-typescript-codegendwtest-computedwtest-compute2@marygao/typescript@itwin/object-storage-azure@f104b396d34949afb4addc697c4479c7/azure@skimp/blob-storage@soyjak/utils@bmtimperman/arm-datafactory@autorest/typescript@azberry/az-simpleautorest-typescriptautorest-typescript-compat@azure/arm-frontdoor@azure/arm-graphservices@azure/arm-hanaonazure@azure/arm-hardwaresecuritymodules@azure/arm-hdinsight@azure/arm-hdinsightcontainers@azure/arm-healthbot@azure/arm-purview@azure/arm-quantum@azure/arm-qumulo@azure/arm-quota@azure/arm-recoveryservices@azure/arm-recoveryservices-siterecovery@azure/arm-orbital@azure/arm-paloaltonetworksngfw@azure/arm-peering@azure/arm-playwrighttesting@azure/arm-policy@azure/arm-policy-profile-2020-09-01-hybrid@azure/arm-policyinsights@azure/arm-recoveryservicesbackup@azure/arm-recoveryservicesdatareplication@azure/arm-rediscache@azure/arm-redisenterprisecache@azure/arm-relay@azure/arm-reservations@azure/arm-resourceconnector@azure/arm-networkfunction@azure/arm-newrelicobservability@azure/arm-nginx@azure/arm-notificationhubs@azure/arm-oep@azure/arm-operationalinsights@azure/arm-operations@azure/arm-resources-subscriptions@azure/arm-resourcesdeploymentstacks@azure/arm-scvmm@azure/arm-search@azure/arm-security@azure/arm-securitydevops@azure/arm-securityinsight@azure/arm-selfhelp@azure/arm-portal@azure/arm-postgresql@azure/arm-postgresql-flexible@azure/arm-powerbidedicated@azure/arm-powerbiembedded@azure/arm-privatedns@azure/arm-servicebus@azure/arm-servicefabric@azure/arm-servicefabricmesh@azure/arm-servicelinker@azure/arm-network-profile-2020-09-01-hybrid@azure/arm-networkanalytics@azure/arm-networkcloud@azure/arm-servicemap@azure/arm-servicenetworking@azure/monitor-query@azure/keyvault-secrets@azure/eventhubs-checkpointstore-blob@azure/mixed-reality-remote-rendering@azure/iot-device-update@azure/keyvault-admin@azure/data-tables@azure/digital-twins@azure/digital-twins-core@azure/digitaltwins@azure/notification-hubs@azure/search-documents@azure/storage-blob@azure/storage-file-share@azure/storage-queue@azure/synapse-access-control@azure/storage-blob-changefeed@azure/storage-file@azure/storage-file-datalake@azure/synapse-artifacts@azure/synapse-managed-private-endpoints@azure/quantum-jobs@azure/search@azure/arm-datadog@azure/arm-datafactory
1.6.2

16 days ago

1.6.1

1 month ago

1.6.0

1 month ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-preview.2

5 years ago

1.0.0-preview.1

5 years ago