open-index/open-npm huggingface dataset:
npm package: @invertase/firestore-record-acknowledgements
Description: A JavaScript utility library for the Firebase Record Acknowledgements Extension.
Author: Invertase
Latest version: 0.1.2

# Firestore Record Acknowledgements Utilities

To assist with the usage of this Extension, a [utility library](https://www.npmjs.com/package/@invertase/firestore-record-acknowledgements) exists
to help provide a typed API interface for easily constructing operations to send to the API.

## Installation

```bash
npm i --save @invertase/firestore-record-acknowledgements
```

> To use this library, you must also have the [`firebase`](https://www.npmjs.com/package/firebase) package installed and initialized before any usage.

## Usage

The library exports a number of functions to assist sending the correct payloads to the correct extension endpoints, with fully typed responses.
The user should be authenticated via the `firebase/auth` package before using any of the functions.

```ts
import { getNotice, acknowledgeNotice, unacknowledgeNotice, getAcknowledgments } from '@invertase/firestore-record-acknowledgements';

// ...

// Get a notice by ID (and optional version).
const notice = await getNotice({ type: 'banner', version: 2 });

// Acknowledge a notice by ID.
await acknowledgeNotice({ noticeId: '...', metadata: { ... } });

// Unacknowledge a notice by ID.
await unacknowledgeNotice({ noticeId: '...', metadata: { ... } });

// Get all acknowledgements for current user.
const acknowledgements = await getAcknowledgments({ includeUnacknowledgments: true });
```

## Custom Functions Instance

If you need to provide a custom functions instance, you can provide an instance to the `functions` argument. This
is useful if you wish to use a secondary app instance or change the region of the functions instance.

```ts
import { initializeApp } from 'firebase/app';
import { getFunctions } from 'firebase/functions';

const app = initializeApp({ ... });
const functions = getFunctions(app, 'europe-west1');

// Use the custom functions instance.
const notice = await getNotice({ functions, type: 'banner' });
```

## Multiple Extension Instances

If you have multiple instances of the extension installed, you can provide the `extensionId` argument to the functions:

```ts
// Makes a request to the uniuque deployed extension.
const notice = await getNotice({ extensionId: '1234', type: 'banner' });
```
npm package: @invertase/image-processing-api
Description: A JavaScript utility library for the Firebase Image Processing API Extension.
Author: Invertase
Latest version: 0.1.0

# Image Processing API Utilities

This package contains utilities for interacting with the Firebase Image Processing API Extension.

## Installation

```bash
npm i --save @invertase/image-processing-api
```

## Usage

### `builder`

Returns a `ImageProcessingApi` instance which can be used to build an array of operations to be applied to an image via the extension.

```ts
import { builder } from '@invertase/image-processing-api';

const output = builder()
  // Input required
  .input({
    source: 'https://example.com/image.jpg',
  })
  .flip()
  .grayscale()
  .rotate({ angle: 90 })
  // Output required
  .output({
    format: 'png',
  });
```

Once created, the api provides the means to return the operations as JSON, a JSON string or an encoded JSON string suitable for GET requests in your browser.

```ts
const json = output.toJSON();
const jsonString = output.toJSONString();
const encodedJsonString = output.toEncodedJSONString();
```
npm package: @invertase/storage-image-processing-api
Description: A JavaScript utility library for the Firebase Storage Image Processing API Extension.
Author: Invertase
Latest version: 0.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Storage Image Processing API Utilities

This package contains utilities for interacting with the Firebase Storage Image Processing API Extension.

## Installation

```bash
npm i --save @invertase/storage-image-processing-api
```

## Usage

### `builder`

Returns a `StorageImageProcessingApi` instance which can be used to build an array of operations to be applied to an image via the extension.

```ts
import { builder } from '@invertase/storage-image-processing-api';

const output = builder()
  // Input required
  .input({
    source: 'https://example.com/image.jpg',
  })
  .flip()
  .grayscale()
  .rotate({ angle: 90 })
  // Output required
  .output({
    format: 'png',
  });
```

Once created, the api provides the means to return the operations as JSON, a JSON string or an encoded JSON string suitable for GET requests in your browser.

```ts
const json = output.toJSON();
const jsonString = output.toJSONString();
const encodedJsonString = output.toEncodedJSONString();
```
npm package: @invertase/template
Description: React Native - Template, with auto-linking
Author: Invertase
Latest version: 0.0.1

# React Native Auto Link Example

The changes in this template will eventually be part of the main RN template (`react-native init`) - for now this is an example template that can be experimented with and be used to try out auto-linking.

> **Warning**: this uses a pre-release version of the cli (which has auto-linking support), as such; some things may not work as expected - please provide feedback and report any bugs/issues

## Init a React Native project with Auto Linking:

Run the below command to init a new React Native project that supports auto-linking. 

```
npx @react-native-community/cli@next init --template=@invertase/template <myProjectName>
```

**Note**: Some React Native modules may be using an old configuration format and will be excluded from auto-linking but will print warnings similar to the following when running `react-native start`:

![image](https://user-images.githubusercontent.com/5347038/56456147-1ad9c380-6360-11e9-85a0-c2d85c1a6580.png)

Please report these issues to the individual module repos

## Adding React Native modules to your project

 - `yarn add` or `npm install` your react-native module
 - Rebuild your app:
   - **Android**: `react-native run-android`
   - **iOS**: `cd ios/ && pod install`, `react-native run-ios`
   
## Additional Resources

 - [Android PR](https://github.com/react-native-community/cli/pull/258)
 - [iOS PR](https://github.com/react-native-community/cli/pull/256)
 - [React Native PR to apply template changes](https://github.com/facebook/react-native/pull/24506)
 - [CLI Issue: 'Umbrella: Autolinking'](https://github.com/react-native-community/cli/issues/288)