open-index/open-npm huggingface dataset:
npm package: @indakwa/you-are-awesome
Description: you are awesome!
Author: Indakwa
Latest version: 1.0.1

﻿# test-package

## awesomeness

This is a simple JavaScript function that takes a name as an argument and returns a string indicating that the name is awesome.

## Usage

To use the function, simply require it in your project and call it with a string argument representing the name you want to declare as awesome.

Example:

```javascript
const awesomeness = require('you-are-awesome');
console.log(awesomeness("Bigfoot"));
```
npm package: @indaneey/label-hint
Description: Labelling your HTML elements in an easy way.
Author: Indaneey Design
Latest version: 1.0.1

labelHint.js
============

labelHint.js is used to label your webpage elements in an easy way. It the solution to help a user to quickly get hint on webpage elements. And is perfect for web page that need more explain to user. It has more cross-browser compatiblity.

Syntax
------

### Import `labelHint()` from label-hint

```js
import { labelHint } from '@indaneey/label-hint';
```

Examples
--------

### Calling labelHint using `require()`

```js
var labelHint = require('label-hint');
var label = new labelHint();
```

### Calling labelHint using `script tag`

```html
<head>
<script src="labelHint.min.js"></script>
</head>
```

and then in `script tag` call labelHint

```js
var label = new labelHint();
```

### Set Data Attribute to HTML Elements

To use labelHint in your page, you have to set data attribute to HTML element that you want to show label on it.

Example
-------

```html
<input type="email" data-labelHint="Enter your email here">
<input type="text" data-labelHint="Enter your fullname here">
```

The data attribute must be `data-labelHint` then follow by your label hint.

### Customise label container

[labelHint] has method called `class()` that you can use to add classname to your label and then customise it using CSS style

```js
var labelHint = require('label-hint');
var label = new labelHint();
label.class('labelstyle');
```

use CSS to style your label

```css
  .labelstyle{
    background-color: "black";
    color: "white"
  }
```

NOTE: Sometimes if your web page is already style div, span or label tag then we recommended to style your label container seperately

Example
-----

```css
  .labelstyle{
    background-color: black;
    border-radius: 5px
  }
  .labelstyle span{
    padding: 10px
  }
  .labelstyle span label{
    color: white;
    font-size: 20px;
  }

```

This will help to have more freedom when customise your label container.

### Set Timeout

To set timeout that you want your label to disappear, if your mouse is hover on HTML element.

```js
var label = new labelHint({
  timeout: 5000
});
```

if not set timeout value, the default value will be set which is 1m40s.
But if your mouse move out from HTML element, the label will disappear even if the timeout is not reach.

====

Installation
------------------

```bash
# Basic Node.JS installation
npm install @indaneey/label-hint --save
```

# labelhint
npm package: @indapublic/rustore-client
Description: nodejs rustore client
Author: Arseny Vorobyov
Latest version: 0.0.1

# RuStore client for NodeJs
<a href="https://www.npmjs.com/package/@piavart/rustore-client"><img src="https://img.shields.io/npm/v/@piavart/rustore-client" alt="NPM Version"></a>
<a href="https://github.com/piavart/nestjs-dynamoose/blob/master/LICENSE"><img src="https://img.shields.io/github/license/piavart/rustore-client" alt="Package License"></a>

## Install
`npm install @piavart/rustore-client`

## Usage

``` ts
import { RuStoreClient } from '@piavart/rustore-client';

const privateKey = 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASZ...'
const companyId = 123;

const client = new RuStoreClient(privateKey, companyId);

const purchase = await client.getPurchase('123.321');
```

В настоящий момент реализован функционал верификации платежей и получение информации о подписке по токену платежа.
npm package: @indb/database
Description: The database package exposes a type-safe, promise-based wrapper around the IndexedDB API.
Author: Trey Cucco
Latest version: 0.3.5

# @indb/database

The database package exposes a type-safe, promise-based wrapper around the
IndexedDB API.

[API Docs](./docs/api/index.html)

## Example

An example database looks something like this:

```typescript
import { Database, type SchemaDefinition } from '@indb/database';

type Todo = {
  id: string;
  listId: string;
  title: string;
  createdAt: number;
};

type List = {
  id: string;
  title: string;
};

type Tables = {
  todos: Todo;
  lists: List;
};

const DATABASE_NAME = 'todos';
const SCHEMA: SchemaDefinition<Tables> = {
  version: 1,
  stores: {
    lists: {
      keyPath: 'id',
    },
    todos: {
      keyPath: 'id',
      indices: {
        listId: {},
      },
    },
  },
};

const database = new Database<Tables>(DATABASE_NAME, SCHEMA);
```

This creates a new database, and will create the `lists` and `todos` stores, as
well as a `listId` index on the `todos` store, so you can easily pull all the
`todos` that are related to a specific `list`.

## Features

### Automatic Schema Migrations

Schemas are defined giving names of stores, key paths, and indices, and whenever
the version of the schema is changed `@indb/database` will diff the current
state of the schema and the requested schema and make the desired changes.

Schemas are type-safe, in that they must define table definitions for all of the
types registered with the database.

### Type-safe

The `Tables` type passed to the database will make sure you only interact with
tables named in the type, and will cast all data from the associated tables with
that type.

Additionally, schema definitions requre that each table have a definition, and
that the key and index paths are valid paths (even deep paths are checked).

### Promise-based

All of the actions you can take on the database return Promises, so you don't
have to work with the lower-level `onerror` and `oncomplete` etc. handlers of
the various objects produced by calls to the IndexedDB API.

### Event Dispatching

Every mutation to the database dispatches an action that can be listened for via
a handler on `database.addEventListener('changed', handler)`. Additionally,
every change to the database will also dispatch an event on a `BroadcastChannel`
that other instances of `Database` in other tabs and windows will listen to.

So, `Database` instances act as event aggregators for all other `Database`
instances, meaning that changes in other tabs or windows will dispatch events in
others, allowing data to keep up to date no matter where the actions occur.

The [stores package](https://www.npmjs.com/packages/@indb/stores) provides some
classes that are designed to efficiently keep in-memory representations of parts
of the database by using this event dispatching functionality.
npm package: @indb/kvstore
Description: This is a wrapper around `@indb/database` that acts as a type-safe key-value store.
Author: Trey Cucco
Latest version: 0.3.5

# @indb/kvstore

This is a wrapper around `@indb/database` that acts as a type-safe key-value
store.

[API Docs](./docs/api/index.html)

## Restrictions

Your `@indb/database` schema must include an object store called `kvstore` and
its type must extend `{ key: string; data: unknown }`.

## Example

```typescript
import { Database, type SchemaDefinition } from '@indb/database';
import { KVStore } from '@indb/kvstore';

export type User = { id: number; firstName: string; lastName: string };
export type SortOrder = { field: string; direction: 'asc' | 'desc' };
export type Operator = '=' | '>' | '<' | '!=';
export type Filter = {
  field: string;
  value: string | number;
  operator: Operator;
};

export type KVEntry = {
  me: User;
  apiToken: string;
  sortOrder: SortOrder[];
  filters: Filter[];
  attempts: number;
};

export type Tables = {
  users: User;
  kvstore: { key: string; data: KVEntry[keyof KVEntry] };
};

export const SCHEMA: SchemaDefinition<Tables> = {
  version: 1,
  stores: {
    users: {
      keyPath: 'id',
    },
    kvstore: {
      keyPath: 'key',
    },
  },
};

const database = new Database<Tables>();
const kvStore = new KVStore<Tables, KVEntry>(database);

await kvStore.set('user', { id: 1, firstName: 'some', lastName: 'one' });
await kvStore.set('filters', [{ field: 'age', value: 30, operator: '>' }]);
await kvStore.set('attempts', 13);

const user = await kvStore.get('user');

// etc.
```
npm package: @indb/preact
Description: The preact package provides a `createStore` method that returns a `Database` instance and several hooks for working with stores from [@indb/stores](https://www.npmjs.com/package/@indb/stores).
Author: Trey Cucco
Latest version: 0.3.5

# @indb/preact

The preact package provides a `createStore` method that returns a `Database`
instance and several hooks for working with stores from
[@indb/stores](https://www.npmjs.com/package/@indb/stores).

[API Docs](./docs/api/index.html)

## Example

Working with `createStore` looks like this:

`store.ts`

```typescript
import { type SchemaDefinition } from '@indb/database';
import { createStore } from '@indb/preact';

type User = {
  id: string;
  firstName: string;
  lastName: string;
};

type Tables = {
  users: User;
};

const DATABASE_NAME = 'app';
const SCHEMA: SchemaDefinition<Tables> = {
  version: 1,
  stores: {
    users: {
      keyPath: 'id',
    },
  },
};

const { database, useSlice } = createStore<Tables>(DATABASE_NAME, SCHEMA);

export { database, useSlice };
```

`UsersList.tsx`

```tsx
import UserListItem from './UserListItem';
import { type User, useSlice } from './store';

const compareUsers = (left: User, right: User) => {
  const comp = left.lastName.localeCompare(right.lastName);
  return comp === 0 ? left.firstName.localeCompare(right.firstName) : comp;
};

const UsersList = () => {
  const { ids: userIds, index: usersIndex } = useSlice('users', compareUsers);

  return (
    <>
      {userIds.map((userId) => (
        <UserListItem user={usersIndex[userId]!} key={userId} />
      ))}
    </>
  );
};

export default UsersList;
```
npm package: @indb/react
Description: The react package provides a `createStore` method that returns a `Database` instance and several hooks for working with stores from [@indb/stores](https://www.npmjs.com/package/@indb/stores).
Author: Trey Cucco
Latest version: 0.3.5

# @indb/react

The react package provides a `createStore` method that returns a `Database`
instance and several hooks for working with stores from
[@indb/stores](https://www.npmjs.com/package/@indb/stores).

[API Docs](./docs/api/index.html)

## Example

Working with `createStore` looks like this:

`store.ts`

```typescript
import { type SchemaDefinition } from '@indb/database';
import { createStore } from '@indb/react';

type User = {
  id: string;
  firstName: string;
  lastName: string;
};

type Tables = {
  users: User;
};

const DATABASE_NAME = 'app';
const SCHEMA: SchemaDefinition<Tables> = {
  version: 1,
  stores: {
    users: {
      keyPath: 'id',
    },
  },
};

const { database, useSlice } = createStore<Tables>(DATABASE_NAME, SCHEMA);

export { database, useSlice };
```

`UsersList.tsx`

```tsx
import UserListItem from './UserListItem';
import { type User, useSlice } from './store.ts';

const compareUsers = (left: User, right: User) => {
  const comp = left.lastName.localeCompare(right.lastName);
  return comp === 0 ? left.firstName.localeCompare(right.firstName) : comp;
};

const UsersList = () => {
  const { ids: userIds, index: usersIndex } = useSlice('users', compareUsers);

  return (
    <>
      {userIds.map((userId) => (
        <UserListItem user={usersIndex[userId]!} key={userId} />
      ))}
    </>
  );
};

export default UsersList;
```
npm package: @indec/heimdall
Description: ## Installation
Author: INDEC
Latest version: 0.2.9

# Heimdall

## Installation

    npm install @indec/heimdall

## Configuration

Add the following environment variables:
    
```bash
AUTH_ENDPOINT=http://localhost:5000
AUTH_CLIENT_ID=<your app client_id>
AUTH_CLIENT_SECRET=<your app secret>
GRANT_TYPE=client_credentials
```

## Examples

### Login on client side

```js
import {LoginService} from '@indec/heimdall/client';

// ENDPOINT constant is your heimdall server. i.e: http://localhost:5000
const loginService = new LoginService(ENDPOINT);
const token = await loginService.login(username, password);
```

### Clean user session

```js
import {TokenService} from '@indec/heimdall/client';

TokenService.clear();
```


### Listing users
List your app's users on server side:

```js
const {UserService} = require('@indec/heimdall').services;

try {
    const users = await UserService.fetchAll();
    console.log(users);
} catch (err) {
    console.error(err);
}
```
npm package: @indec/react-address-commons
Description: Common react components for address apps
Author: INDEC
Latest version: 2.4.4

# react-address-commons &middot; [![NPM version](https://img.shields.io/npm/v/@indec/react-address-commons.svg)](https://www.npmjs.com/package/@indec/react-address-commons) [![Build Status](https://travis-ci.org/indec-it/react-address-commons.svg?branch=master)](https://travis-ci.org/indec-it/react-address-commons) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/indec-it/react-address-commons/blob/master/LICENSE)

## Installation

    npm install @indec/react-address-commons
npm package: @indec/react-native-commons
Description: Common react-native components for apps
Author: INDEC
Latest version: 1.2.0

# react-native-commons

## Installation

    npm install @indec/react-native-commons

## Development

The `npm link` doesn't work because `react-native` [doesn't support symlinks](https://github.com/facebook/metro/issues/1). For local testing add the modified package to your project using the following command:

    npm add /path/to/react-native-commons

or via yarn:

    yarn add file:/path/to/react-native-commons
npm package: @indec/react-native-survey-commons
Description: Common react-native components for survey apps
Author: INDEC
Latest version: 0.2.0

# react-native-survey-commons &middot; [![NPM version](https://img.shields.io/npm/v/@indec/react-native-survey-commons.svg)](https://www.npmjs.com/package/@indec/react-native-survey-commons) [![Build Status](https://travis-ci.org/indec-it/react-native-survey-commons.svg?branch=master)](https://travis-ci.org/indec-it/react-native-survey-commons) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/indec-it/react-native-survey-commons/blob/master/LICENSE)

## Installation

    npm install @indec/react-native-survey-commons
npm package: @indec/react-native-table
Description: A Table component for react-native apps
Author: INDEC
Latest version: 0.2.0

# react-native-table &middot; [![NPM version](https://img.shields.io/npm/v/@indec/react-native-table.svg)](https://www.npmjs.com/package/@indec/react-native-table) [![Build Status](https://travis-ci.org/indec-it/react-native-table.svg?branch=master)](https://travis-ci.org/indec-it/react-native-table) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/indec-it/react-native-table/blob/master/LICENSE)

## Installation

    npm install @indec/react-native-table
npm package: @indeliblelabs/keccak256
Description: A wrapper for the keccak library to compute 256 bit keccak hash in JavaScript
Author: Indelible Labs
Latest version: 1.0.0

# keccak256

> A wrapper for the [`keccak`](https://www.npmjs.com/package/keccak) library to compute 256 bit keccak hash in JavaScript.

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/indeliblelabs/keccak256/main/LICENSE.md)

## Install

```bash
npm install @indeliblelabs/keccak256
```


## Usage

- **keccak256**(data) -> {Buffer}
  - {String | Buffer} data - data string or Buffer

  Returns a Buffer

## Getting Started

```js
const keccak256 = require('@indeliblelabs/keccak256')

console.log(keccak256('hello').toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"

console.log(keccak256(Buffer.from('hello')).toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
```


## Test

```bash
npm test
```

## License

MIT
npm package: @indent-oss/sanityio-referenced-by
Description: Plugin for viewing resources which reference a particular resource
Author: Natalie Marleny
Latest version: 0.1.4

# @indent-oss/sanityio-referenced-by

Plugin to see which documents reference a particular document

![referenced-by-sanityio](https://user-images.githubusercontent.com/31798108/173106725-25c7704c-e4ca-4f5a-84a3-3b3dd8237986.JPG)

https://user-images.githubusercontent.com/31798108/173065472-95294be4-7fc1-4f19-ba6c-e313c67acbed.mov

*Video Alt Text: Demonstration of the Referenced-by Plugin* 

## Getting started

1. Have an existing Sanity.io Studio Project

2. Install `@indent-oss/sanityio-referenced-by` plugin using the command line:

    - NPM

    ```bash
    npm i @indent-oss/sanityio-referenced-by
    ```

    - Yarn

    ```bash
    yarn add @indent-oss/sanityio-referenced-by
    ```

3. Add `@indent-oss/sanityio-referenced-by` to `sanity.json` "plugins":
```json
  // /sanity.json
  "plugins": [
    "@indent-oss/sanityio-referenced-by"
  ],
```

4. Add `sanity-structure.js` reference to `sanity.json` "parts":
```json
  // /sanity.json
  "parts": [
    {
      "name": "part:@sanity/desk-tool/structure",
      "path": "./sanity-structure.js"
    }
  ]
```

5. Create and/or update `sanity-structure.js` in the root directory:

```js
// /sanity-structure.js
import {ReferencedByView} from 'part:@indent-oss/sanityio-referenced-by'
import S from '@sanity/desk-tool/structure-builder'

export const getDefaultDocumentNode = () => {
  return S.document().views([
    S.view.form(),
    S.view.component(ReferencedByView).title('Referenced by'),
  ])
}

export default () => S.list().title('Base').items(S.documentTypeListItems())
```

Please note that Sanity.io Studio requires a `title` as a property of `S` in the `export default` function, but title does not need to be 'Base' for the plugin to work.

6. Run the Sanity.io Studio Project - "Referenced By" plugin tab appears

The `example` directory contains an example Sanity.io Studio project which has the `@indent-oss/sanityio-referenced-by` plugin already installed

## Credits

Thank you to [Devin Halladay](https://www.sanity.io/exchange/community/theflowingsky): [List Referring Documents (Backlinks) in Sanity](https://www.sanity.io/schemas/list-referring-documents-backlinks-in-sanity-1a8ada64)

## License

MIT © [Indent Inc](https://indent.com/)