open-index/open-npm huggingface dataset:
npm package: @ionic/platform-client-angular
Description: Ionic Platform Client for Angular 2
Author: Ionic
Latest version: 0.0.8
Deprecated: Ionic Platform is no longer supported. See https://ionicframework.com/pro

# Ionic Platform Client for Angular 2

Angular 2 integration for the Ionic Platform in your app.

## Installation

```bash
$ npm install --save @ionic/platform-client-angular
```

## Usage

In your `app.ts` file, tell Angular about the platform providers by calling the imported `providers` function with a config and passing it to
[`ionicBootstrap`](http://ionicframework.com/docs/v2/api/config/Config/)
function. Then, use the injectable platform classes (`Auth`, `User`, `Push`, `Deploy`, etc.) in your app's classes just as you would any
other service class.

```javascript
import ...
import {Auth, User, providers} from '@ionic/platform-client-angular';

let platformConfig = {
  'core': {
    'app_id': 'YOUR-APP-ID'
  }
};

@Component({
  template: '<ion-nav [root]="rootPage"></ion-nav>'
})
export class MyApp {
  rootPage: any = TabsPage;

  constructor(platform: Platform, user: User) {
    platform.ready().then(() => {
      Auth.signup({'email': 'hi@ionic.io', 'password': 'puppies123'}).then(() => {
        // `user` is now the authenticated user
      }, (err) => {
        // something went wrong!
      });
    });
  }
}

ionicBootstrap(MyApp, providers(platformConfig), { /* Ionic Framework Config */ });
```

## Issues

This package wraps the [platform client](https://github.com/driftyco/ionic-platform-web-client) to
add Angular integration. Because of this, most issues should be reported in the
[platform client issues](https://github.com/driftyco/ionic-platform-web-client/issues) or the
[platform issues](https://github.com/driftyco/ionic-platform-issues/issues).
npm package: @ionic/prettier-config
Description: Prettier config for Ionic and Capacitor
Author: Ionic
Latest version: 4.0.0

# @ionic/prettier-config

Shared Prettier config used in Ionic, Capacitor, and Stencil projects.

## Usage

Usage is based on [Sharing configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations) from the Prettier docs.

1. Remove existing `.prettierrc` file, if present.
1. Install the config.

    ```
    npm install -D @ionic/prettier-config
    ```

1. Add the following to `package.json`:

    ```
    "prettier": "@ionic/prettier-config",
    ```
npm package: @ionic/pro-api-javascript-client
Description: A simple JasvaScript client for interacting with Ionic Pro
Author: Ionic
Latest version: 0.0.13

# Ionic Pro API Client

A simple JavaScript client for interacting with the Ionic Pro API.

Note: this is meant for API access, not end-user apps. For most users, the [Pro Client](https://www.npmjs.com/package/@ionic/pro) is actually what you want.

## Alpha Notice

This is still in active development, and is far from comprehensive at the moment.  

### Available API Resources

- [x] Apps
- [x] Snapshots (JS Builds)
- [x] Packages (Native Builds)
- [x] Users
- [ ] Deploy channels
- [ ] Organizations
- [ ] Teams
- [ ] View Testers

## Installation

```bash
npm install --save @ionic/pro-api-javascript-client
```

## Usage

```typescript
import { Environment, ProClient, User } from 'pro-client';

...

// Instantiate the client
let cfg: Environment = { debug: true }
let client: ProClient = new ProClient(cfg);

...

// Login to Ionic Pro
client.login("username@test.com", "myAwesomePassword123").then((user: User) => {
  console.log("Logged in", user);
});

...

// List apps you have access to
client.resource.apps.list().then((res: any) => {
  console.log("My apps:", res);
}, (err: any) => {
  console.error("Error getting apps:", err);
});

...

// List native builds for an app
let appId: string = "abcd1234";
let filters = { platform: "iOS" }; // Optional

client.resource.package.list(appId, filters).then((res: any) => {
  console.log("My native builds:", res);
}, (err: any) => {
  console.error("Error getting builds:", err);
});
```
npm package: @ionic/pwa-elements
Description: Stencil Component Starter
Author: Ionic Team
Latest version: 3.4.0

# Ionic Elements for Progressive Web Apps

This project is a growing collection of pre-built UI experiences for Web APIs such
as camera/video, focused on building Progressive Web Apps that meet and exceed
native mobile app experiences.

These elements are a key part of our mission to build the [Progressive Web App OS](https://medium.com/@maxlynch/building-the-progressive-web-app-os-57daebcb69c1)
by providing awesome UIs on top of low-level Web APIs.

These components are built as Web Components that can be used in any web app, using
the power of [Stencil JS](http://stenciljs.com/).

## Currently Supported

Currently, the project offers a quality in-app Camera experience using
`getUserMedia`, with support for multiple cameras and with automatic handling
of image data.

See [the provided example](https://github.com/ionic-team/ionic-pwa-elements/blob/master/src/index.html)
for an example of how to use these components.

## Capacitor Usage

Ionic PWA Elements were built primarily for developers using [Capacitor](https://capacitorjs.com/),
our Native app container that allows web apps to run on nearly every platform
with consistent APIs.

Ionic PWA Elements offer web-UI experiences for Capacitor apps running in a browser
as PWA, such that the API is identical for the PWA and the native app store app.

See the [Capacitor PWA Elements](https://capacitorjs.com/docs/web/pwa-elements)
page for more information on using this library in your Capacitor apps.
npm package: @ionic/react-test-utils
Description: Test utilities for Ionic React
Latest version: 0.4.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Ionic React Test Utils

This is a set of helper methods to make testing easier in Ionic React with React Testing Library and Jest.

## Installation

```
yarn add -D @ionic/react-test-utils
```

or

```
npm install --dev @ionic/react-test-utils
```

## Custom ionFireEvent

`ionFireEvent` extends [Testing Library's](https://testing-library.com/docs/dom-testing-library/api-events) `fireEvent` by adding the custom `ion*` events. This can be used as a drop in replacement for `fireEvent` or used in conjunction with.

```javascript
import { ionFireEvent as fireEvent } from '@ionic/react-test-utils';

...


fireEvent.ionChange(element, 'my text');
```

## mockIonicReact

This method mocks out certain Ionic components that have issues rendering in JSDOM. To use it, open up `setupTests.ts` and add this to the file:

```javascript
import { mockIonicReact } from '@ionic/react-test-utils';
mockIonicReact();
```

If you are using Ionic v6, you will also need to call `setupIonicReact`:

```js
import { mockIonicReact } from '@ionic/react-test-utils';
import { setupIonicReact } from '@ionic/react';

setupIonicReact();
mockIonicReact();
```

## waitForIonicReact

This function waits for Ionic React to be fully initialized. Use this in any test that renders Ionic components, to ensure the rendered markup has all classes etc. that Ionic adds at runtime.

```jsx
import { render } from '@testing-library/react';
import { waitForIonicReact } from '@ionic/react-test-utils';
import MyComponent from './MyComponent';

describe('<MyComponent />', () => {
  it('renders consistently', async () => {
    const { baseElement } = render(<MyComponent/>);
    await waitForIonicReact();
    expect(baseElement).toMatchSnapshot();
  });
});
```

`waitForIonicReact` waits for the DOM to be stable, meaning no markup has changed for a certain period of time. This period is determined by the first parameter, `timeout`, which defaults to 750 milliseconds. There is also a global timeout determined by the second parameter, `maxWaitTime`. This defaults to 5000 milliseconds (five seconds) and, if hit, will cause the function to fail early. If you find your tests are running too slow or not detecting all Ionic behaviors, try tweaking these values.
npm package: @ionic/remote-log
Description: Add remote logging to your web application
Author: Ionic Team
Latest version: 0.0.2

# Remote Logging

Call `initLogger` to override `console.log`, `console.warn`, `console.error` and `console.info` functions which will be routed to the given remote server.

```shell
npm install @ionic/remote-log
```

```typescript
import { initLogger } from '@ionic/remote-log';

initLogger('192.168.1.130:9000');
```