open-index/open-npm huggingface dataset:
npm package: @khulnasoft/paginate-aws
Description: Typesafe AWS Pagination using async generators 
Author: KhulnaSoft DevSec
Latest version: 1.0.6

# paginate-aws

> Typesafe AWS Pagination using async generators

Useful when you need to paginate and AWS SDK call (v2/v3). Works with any aws operation with a paginationKey and uses typescript to help (but not guarantee) you have selected the correct pagination key

![Pagination Key Help](example.png)



## Install

```bash
npm install @khulnasoft/paginate-aws
```

## Usage
```js
import { paginate } from '@khulnasoft/paginate-aws';

for await (const stacks of paginate((next) => cloudFormation.listStacks({ NextToken: next }).promise(), 'NextToken')) {
    console.log(stacks.StackSummaries)
    //=> [{ StackName: 'prod-just-ship-it-be-cool', ...}, ...]
}
```
## API

### paginate((next: string) => somePromise({ next }), paginationKey: string)

returns an async generator that paginates through the aws-sdk list method returning all the responses.
npm package: @khulnasoft/postgrest-js
Description: Isomorphic PostgREST client
Author: Khulnasoft
Latest version: 1.15.2

# `postgrest-js`

[![Build](https://github.com/khulnasoft/postgrest-js/workflows/CI/badge.svg)](https://github.com/khulnasoft/postgrest-js/actions?query=branch%3Amaster)
[![Package](https://img.shields.io/npm/v/@khulnasoft/postgrest-js)](https://www.npmjs.com/package/@khulnasoft/postgrest-js)
[![License: MIT](https://img.shields.io/npm/l/@khulnasoft/postgrest-js)](#license)

Isomorphic JavaScript client for [PostgREST](https://postgrest.org). The goal of this library is to make an "ORM-like" restful interface.

Full documentation can be found [here](https://khulnasoft.github.io/postgrest-js/v2).

### Quick start

Install

```bash
npm install @khulnasoft/postgrest-js
```

Usage

```js
import { PostgrestClient } from '@khulnasoft/postgrest-js'

const REST_URL = 'http://localhost:3000'
const postgrest = new PostgrestClient(REST_URL)
```

- select(): https://khulnasoft.com/docs/reference/javascript/select
- insert(): https://khulnasoft.com/docs/reference/javascript/insert
- update(): https://khulnasoft.com/docs/reference/javascript/update
- delete(): https://khulnasoft.com/docs/reference/javascript/delete

#### Custom `fetch` implementation

`postgrest-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

```js
import { PostgrestClient } from '@khulnasoft/postgrest-js'

const REST_URL = 'http://localhost:3000'
const postgrest = new PostgrestClient(REST_URL, {
  fetch: (...args) => fetch(...args),
})
```

## License

This repo is licensed under MIT License.

## Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/khulnasoft)