open-index/open-npm huggingface dataset:
npm package: @naveego/client-auth
Description: AuthAPI Library with typescript type definitions for node.js and browser.
Author: Microsoft Corporation
Latest version: 1.0.2-beta.6

## An isomorphic javascript sdk for - AuthAPI

This package contains an isomorphic SDK for AuthAPI.

### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

```bash
npm install @naveego/client-auth
```

### How to use

#### nodejs - Authentication, client creation and getConfiguration  as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AuthAPI, AuthAPIModels, AuthAPIMappers } from "@naveego/client-auth";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
  const client = new AuthAPI(creds, subscriptionId);
  const tenantId = "testtenantId";
  client.getConfiguration(tenantId).then((result) => {
    console.log("The result is:");
    console.log(result);
  });
}).catch((err) => {
  console.error(err);
});
```

#### browser - Authentication, client creation and getConfiguration  as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```bash
npm install @azure/ms-rest-browserauth
```

##### Sample code

See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>@naveego/client-auth sample</title>
    <script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
    <script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
    <script src="node_modules/@naveego/client-auth/dist/client-auth.js"></script>
    <script type="text/javascript">
      const subscriptionId = "<Subscription_Id>";
      const authManager = new msAuth.AuthManager({
        clientId: "<client id for your Azure AD app>",
        tenant: "<optional tenant for your organization>"
      });
      authManager.finalizeLogin().then((res) => {
        if (!res.isLoggedIn) {
          // may cause redirects
          authManager.login();
        }
        const client = new Naveego.ClientAuth.AuthAPI(res.creds, subscriptionId);
        const tenantId = "testtenantId";
        client.getConfiguration(tenantId).then((result) => {
          console.log("The result is:");
          console.log(result);
        }).catch((err) => {
          console.log("An error occurred:");
          console.error(err);
        });
      });
    </script>
  </head>
  <body></body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
npm package: @naveego/client-metabase
Description: MetabaseApi Library with typescript type definitions for node.js and browser.
Author: Microsoft Corporation
Latest version: 1.0.0-beta.1

## An isomorphic javascript sdk for - MetabaseApi

This package contains an isomorphic SDK for MetabaseApi.

### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

```bash
npm install @naveego/client-metabase
```

### How to use

#### nodejs - Authentication, client creation and getPagedStatusesForBatch  as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { MetabaseApi, MetabaseApiModels, MetabaseApiMappers } from "@naveego/client-metabase";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
  const client = new MetabaseApi(creds, subscriptionId);
  const id = "testid";
  const page = 1;
  const pageSize = 1;
  client.getPagedStatusesForBatch(id, page, pageSize).then((result) => {
    console.log("The result is:");
    console.log(result);
  });
}).catch((err) => {
  console.error(err);
});
```

#### browser - Authentication, client creation and getPagedStatusesForBatch  as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```bash
npm install @azure/ms-rest-browserauth
```

##### Sample code

See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>@naveego/client-metabase sample</title>
    <script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
    <script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
    <script src="node_modules/@naveego/client-metabase/dist/client-metabase.js"></script>
    <script type="text/javascript">
      const subscriptionId = "<Subscription_Id>";
      const authManager = new msAuth.AuthManager({
        clientId: "<client id for your Azure AD app>",
        tenant: "<optional tenant for your organization>"
      });
      authManager.finalizeLogin().then((res) => {
        if (!res.isLoggedIn) {
          // may cause redirects
          authManager.login();
        }
        const client = new Naveego.ClientMetabase.MetabaseApi(res.creds, subscriptionId);
        const id = "testid";
        const page = 1;
        const pageSize = 1;
        client.getPagedStatusesForBatch(id, page, pageSize).then((result) => {
          console.log("The result is:");
          console.log(result);
        }).catch((err) => {
          console.log("An error occurred:");
          console.error(err);
        });
      });
    </script>
  </head>
  <body></body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
npm package: @naveego/live-js
Description: The JavaScript/TypeScript client for the Naveego Live service.
Author: Naveego
Latest version: 0.1.9

# live-js
JavaScript client for Naveego Live service.

## Development

* Build: `tsc`
* Publish: Increment the version number in package.json, then `npm publish --access public`

## Usage

Get a socket.io client, then pass it to the constructor of one of the Live clients:

* `LiveClient` 
* `PipelineLiveClient`
npm package: @naveen-bharathi/ordinal-numbers
Description: A javascript module to get ordinal numbers like 1st, 2nd and 3rd.
Author: Naveen Bharathi
Latest version: 1.0.1

![tests](https://github.com/naveen-bharathi/ordinal-numbers/workflows/tests/badge.svg?event=push) ![License](https://badgen.net/npm/license/@naveen-bharathi%2Fordinal-numbers?color=blue) ![GitHub issues](https://img.shields.io/github/issues/naveen-bharathi/ordinal-numbers) <!-- ![weekly downloads](https://badgen.net/npm/dw/@naveen-bharathi%2Fordinal-numbers?color=blue&icon=npm)  -->![dependencies](https://badgen.net/david/dep/naveen-bharathi/ordinal-numbers?color=green) <!-- ![dependents](https://badgen.net/npm/dependents/@naveen-bharathi%2Fordinal-numbers?color=green)  -->![publish size](https://badgen.net/bundlephobia/minzip/@naveen-bharathi/ordinal-numbers?color=blue)

# ordinal-numbers

A javascript module to get ordinal numbers like 1st, 2nd and 3rd.

## Installation

if you are using npm, run
```
npm install --save @naveen-bharathi/ordinal-numbers
```

or

if you are using yarn package manager, run
```
yarn add @naveen-bharathi/ordinal-numbers
```

## Example

Get the ordinal of **`1`**.

```javascript
import getOrdinalNumber from '@naveen-bharathi/ordinal-numbers'; // ES6
// or
const getOrdinalNumber = require('@naveen-bharathi/ordinal-numbers'); // ES5

const ordinalOfOne = getOrdinalNumber(1);

console.log(ordinalOfOne);
// outputs ==> 'st'
```

Get the ordinal of **`2`**.

```javascript
import getOrdinalNumber from '@naveen-bharathi/ordinal-numbers'; // ES6
// or
const getOrdinalNumber = require('@naveen-bharathi/ordinal-numbers'); // ES5

const ordinalOfTwo = getOrdinalNumber(2);

console.log(ordinalOfTwo);
// outputs ==> 'nd'
```

## Parameters

#### getOrdinalNumber(number)
- **number** **{Object | Array}** - Number for which the ordinal is needed.


## Tests

![tests](https://github.com/naveen-bharathi/ordinal-numbers/workflows/tests/badge.svg?event=push)


## Open Issues

![GitHub issues](https://img.shields.io/github/issues/naveen-bharathi/ordinal-numbers)


## LICENSE

MIT License

Copyright (c) 2020 Naveen Bharathi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.