# nativescript-native-object-pool

> NativeScript's plugin to share objects references between threads (main and Workers)

Latest version **1.0.1** (published 2020-04-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nativescript-native-object-pool
pnpm add nativescript-native-object-pool
yarn add nativescript-native-object-pool
bun add nativescript-native-object-pool
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-02 |
| First published | 2020-03-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 66.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | juanchinovas |
| Maintainers | juanchinovas |
| Keywords | NativeScript, JavaScript, Android, iOS, Share pool, Object pool |

## Links

- npm: https://www.npmjs.com/package/nativescript-native-object-pool
- Repository: https://github.com/juanchinovas/nativescript-native-object-pool
- Issues: https://github.com/juanchinovas/nativescript-native-object-pool/issues
- npm.io page: https://npm.io/package/nativescript-native-object-pool

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-04-02
- 1.0.0 — 2020-03-16

## README

# nativescript-native-object-pool ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) &amp;  ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)

This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)


## Installation

Copy and paste the code below to add this plugin into your app:

```javascript
tns plugin add nativescript-native-object-pool
```

## Usage 

All methods are statics. Just copy the import statament below and invoke the desire method.
	
```typescript
import { NativeObjectPool } from "nativescript-native-object-pool";
```

## API

```typescript 
class NativeObjectPool {
    static add(key: string, value: any): boolean;
    static get(key: string): any;
    static remove(key: string): boolean;
    static removeAll(): void;
}
``` 
## License

Apache License Version 2.0, January 2004

---
_Source: https://npm.io/package/nativescript-native-object-pool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
