open-index/open-npm huggingface dataset:
npm package: @nejcm/configs
Description: Common configs I use accross my projects.
Author: Nejc Mursic
Latest version: 1.2.2

# Configs

Different usefull config files I use in my projects and other settings, templates, ...

## Install

```bash
npm install @nejcm/configs --save-dev
# OR
yarn add -D @nejcm/configs
```

## Included

### Configs

- [prettier.config.js](./src/prettier.config.js)
- [release.config.js](./src/release.config.js)
- [jest.config.js](./src/jest.config.js)
- [tsconfig.json](./src/tsconfig.json)
- [global.d.ts](./src/prettier.config.js)

### Github

- [README](./src/github/README.md)

### VSCode

- [README](./src/vscode/README.md)

## Use

Inside your specific config file:

**.eslintrc.js**

```js
const config = require("@nejcm/configs/src/.eslintrc.js");

module.exports = Object.assign(config, {
  // your overriding or other config options
});
```

**tsconfig.json**

```json
{
  "extends": "./node_modules/@nejcm/configs/src/tsconfig.json",
  "compilerOptions": {
    ...
  },
}
```

**global.d.ts**

```json
{
  "compilerOptions": {
    "types": ["@nejcm/configs/src/global.d.ts"]
  }
}
```
npm package: @nejcm/polkadot-hooks
Description: Collection of helpful React Hooks for polkadot.
Author: Nejc Mursic
Latest version: 0.0.7

# polkadot-hooks

Collection of helpful React Hooks for Polkadot and utility functions.


[![version](https://img.shields.io/npm/v/@nejcm/polkadot-hooks.svg)](https://www.npmjs.com/package/@nejcm/polkadot-hooks)
[![release](https://github.com/nejcm/polkadot-hooks/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/nejcm/polkadot-hooks/actions/workflows/release.yml)
![TypeScript](https://img.shields.io/badge/-TypeSript-white?logo=typescript)
![React](https://img.shields.io/badge/-React-white?logo=react)
![Polkadot](https://img.shields.io/badge/-Polkadot-cd2c75?logo=polkadot)

## Docs

> [https://nejcm.github.io/polkadot-hooks/](https://nejcm.github.io/polkadot-hooks/)


## Features

- [x] Basic React hooks (useBalance, useContract, useContractWrite, useTokenAllowance, useTokenApproval)
- [ ] Advanced React hooks (useTransaction, useContractEvent, useSendTransaction, useSignMessage)
- [ ] Unit helpers (parseUnits, formatUnits)
- [ ] Other helpers (anonymize)
npm package: @nejcm/rollup-plugin-size-snapshot-vite
Description: <img src="example2.png" />
Author: Bogdan Chadkin
Latest version: 0.0.8

# rollup-plugin-size-snapshot

<img src="example2.png" />

This plugin provides details about

- actual bundle size (bundler parsing size)
- minified bundle size (browser parsing size)
- gzipped bundle size (download size)

All of these sizes are important criteria when choosing a library, and they will be stored in the `.size-snapshot.json` file.

## Usage

Inside `vite.config`:

```js
import { sizeSnapshot } from '@nejcm/rollup-plugin-size-snapshot-vite';

export default defineConfig({
  build: {
    rollupOptions: {
      plugins: [sizeSnapshot()],
    },
  },
});
```

> Note: If your config file is as `.ts` file than casting to any might be required. E.g.: `sizeSnapshot() as any`

# License

MIT &copy; [Bogdan Chadkin](mailto:trysound@yandex.ru)
npm package: @nejlyg/expo-mixpanel-analytics
Description: Mixpanel integration for use with React Native apps built on Expo.
Author: Gian Olivar
Latest version: 1.0.9

# Expo Mixpanel Analytics

Mixpanel integration for use with React Native apps built on Expo.

## Installation

```
npm install @nejlyg/expo-mixpanel-analytics --save
```

## Import

Your React Native app's screen resolution, app name, app ID, app version, device information and multiple other parameters will be automatically resolved and sent with each event.

Supports Expo 45 by Gian

```
import ExpoMixpanelAnalytics from 'expo-mixpanel-analytics-gian';
```

## Usage

```
const analytics = new ExpoMixpanelAnalytics({
  token: 'mixpanelToken',
  deviceId: 'sampleDeviceId',
});

analytics.identify("13793");

analytics.register({ email: "bob@bob.com" }); // super props sent on every request and persisted in AsyncStorage

analytics.track("Signed Up", { "Referred By": "Friend" });

analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "joe.doe@example.com", "$created": "2013-04-01T13:20:00", "$phone": "4805551212", "Address": "1313 Mockingbird Lane", "Birthday": "1948-01-01" });

analytics.people_set_once({ "First login date": "2013-04-01T13:20:00" });

analytics.people_unset([ "Days Overdue" ]);

analytics.people_increment({ "Coins Gathered": 12 });

analytics.people_append({ "Power Ups": "Bubble Lead" });

analytics.people_union({ "Items purchased": ["socks", "shirts"] });

analytics.people_delete_user();

analytics.reset();

```

## References

https://mixpanel.com/help/reference/http
npm package: @nejlyg/expo-mixpanel-analytics-gian
Description: Mixpanel integration for use with React Native apps built on Expo.
Author: Gian Olivar
Latest version: 1.0.2

# Expo Mixpanel Analytics

Mixpanel integration for use with React Native apps built on Expo.

## Installation

```
npm install expo-mixpanel-analytics-gian --save
```

## Import

Your React Native app's screen resolution, app name, app ID, app version, device information and multiple other parameters will be automatically resolved and sent with each event.

Supports Expo 45

```
import ExpoMixpanelAnalytics from 'expo-mixpanel-analytics-gian';
```

## Usage

```
const analytics = new ExpoMixpanelAnalytics({
  token: 'mixpanelToken',
  deviceId: 'sampleDeviceId',
});

analytics.identify("13793");

analytics.register({ email: "bob@bob.com" }); // super props sent on every request and persisted in AsyncStorage

analytics.track("Signed Up", { "Referred By": "Friend" });

analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "joe.doe@example.com", "$created": "2013-04-01T13:20:00", "$phone": "4805551212", "Address": "1313 Mockingbird Lane", "Birthday": "1948-01-01" });

analytics.people_set_once({ "First login date": "2013-04-01T13:20:00" });

analytics.people_unset([ "Days Overdue" ]);

analytics.people_increment({ "Coins Gathered": 12 });

analytics.people_append({ "Power Ups": "Bubble Lead" });

analytics.people_union({ "Items purchased": ["socks", "shirts"] });

analytics.people_delete_user();

analytics.reset();

```

## References

https://mixpanel.com/help/reference/http
npm package: @nejs/subscript-proxy
Description: A simple reusable proxy to allow custom subscript access
Author: Brielle Harrison
Latest version: 1.0.3

# SubscriptProxy

A powerful and flexible JavaScript library for allowing easy and programmatic subscript access to any object.

## Features

 - Allows programmatic methods for defining how an object should react when non-existing keys are
   accessed. 

## Future Features

 - Allow set traps instead of only get traps
 - Allow option to simply return proxy around original object rather than modifying prototype chain

## Installation


### Node JS

In a node js project, simply perform the following npm
install command.

```bash
npm install @nejs/subscript-proxy
```

### Browser

In a browser, a script tag pointed here can get you a CDN
served version of the latest build

```html
<script type="module">
  const { SubscriptProxy } = await import('https://cdn.jsdelivr.net/gh/nyteshade/ne-subscript-proxy@main/dist/subscriptproxy.mjs')

  // ... use SubscriptProxy here
</script>
```

Or if you want it to automatically be injected into the window,
you can use the iffy variant.

```html
<script src="'https://cdn.jsdelivr.net/gh/nyteshade/ne-subscript-proxy@main/dist/subscriptproxy.js'"></script>
```

## Usage

### Basic Usage

```js
import { SubscriptProxy } from '@nejs/subscript-proxy';

// or alternatively
const { SubscriptProxy } = require('@nejs/subscript-proxy');

// or alternatively
const { SubscriptProxy } = await import('@nejs/subscript-proxy');

// Take an object
let object = { name: 'Cocacola' }

// Choose some proxied key value pairs
SubscriptProxy.applyTo(object, [
  ['type', 'drink'],
  ['hasCalories', () => true]
])

// or
SubscriptProxy.applyTo(object, {
  type: 'drink',
  hasCalories() { return true },
})

// Then use
object.name // 'Cocacola'
object.type // 'drink'
object.hasCalories // true
```

## License

MIT

## Contributing

Contributors are welcome! Please submit a Pull Request.