open-index/open-npm huggingface dataset:
npm package: @naluri-hidup/naluri-chat-sdk
Description: ### Importing library
Author: Naluri Hidup
Latest version: 0.1.0-beta.54

# Naluri chat sdk

### Importing library

You can import the generated bundle to use the whole

```javascript
import NaluriChat from 'NaluriChat';
```

Additionally, you can import the transpiled modules from `dist/lib` in case you have a modular library:

```javascript
import queryChannels from 'NaluriChat/dist/lib/querychannels';
```

## Commands

- `yarn test`: Run test suite
- `yarn start`: Run `yarn build` in watch mode
- `yarn build`: Generate bundles and typings, create docs
- `yarn lint`: Lints code

## Testing

#### Integration Test on [naluri-chat-sdk-demo](https://github.com/naluri-hidup/naluri-chat-sdk-demo)

- at `naluri-chat-sdk` repo: run `yarn push`
- at your emulator, if you are running on existing terminal and built app, please try to stop the terminal process and delete the app first
- at `naluri-chat-sdk-demo` repo: run `yarn clean`
npm package: @naluri-hidup/react-native-payment-sdk
Description: Naluri payment sdk
Author: Naluri Hidup Sdn Bhd
Latest version: 0.5.3

# react-native-payment-sdk

naluri payment sdk

## Installation

```sh
yarn install react-native-payment-sdk
```

## Usage

```js
import { createPaymentClient } from 'react-native-payment-sdk';

// ...

const paymentClient = createPaymentClient({
  environment: 'staging',
  cache: 'memory',
  authorization: {
    clientKey: '',
    clientSecret: ''
  }
})

paymentClient.createPayment();

paymentClient.on('paymentStatus', (status) => {
  if (status === 'success') {
    ...
  }
})
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @naluri/naluri-keymaker
Description: This package contains a library to encrypt - decrypt a message that has to be sent over the internet.
Latest version: 1.0.0

# The Keymaker

This package contains a library to encrypt - decrypt a message that has to be sent over the internet.

## Installation

Using npm:

```sh
npm install @naluri-hidup/keymaker
```

Using yarn:

```sh
yarn add @naluri-hidup/keymaker
```

## Usage

Import the library using:

```ts
import { Keymaker } from "@naluri-hidup/keymaker";
```

### Public - Private Key Asymmetric Encryption

This module uses [TweetNaCL](https://www.npmjs.com/package/tweetnacl) package.

```ts
const keymaker = new Keymaker(Keymaker.random(32));
const encrypted = keymaker.encrypt(message);
const decrypted = keymaker.decrypt(encrypted);
```

> **NOTE:** The master key **SHOULD** be 32 char length.

Or if you prefer **NOT** to use passphrased key pair, use the static method instead:

```ts
const aliceKeyPair = Keymaker.keyPair();
const bobKeyPair = Keymaker.keyPair();
const message = Keymaker.random(128);
// On Alice's side
const encrypted = Keymaker.encrypt(
  message,
  Keymaker.encodeBase64(bobKeyPair.publicKey),
  Keymaker.encodeBase64(aliceKeyPair.secretKey)
);
// On Bob's side
const decrypted = Keymaker.decrypt(
  encrypted,
  Keymaker.encodeBase64(aliceKeyPair.publicKey),
  Keymaker.encodeBase64(bobKeyPair.secretKey)
);
// decrypted === message
```

### Bcrypt

This module uses [bcrypt](https://www.npmjs.com/package/bcrypt) package.

```ts
const password = await Keymaker.hash("plain-password");
const isValid = await Keymaker.validate("plain-password", password); // => "true"
```

You may define the bcrypt rounds by supplying second argument. By default, it uses 8 rounds.

```ts
const password = await Keymaker.hash("plain-password", 16); // 16 rounds
```

### Additional

You can generate an random string using this package.

```ts
const random = Keymaker.random(16); // Generate 16 characters random string
const randomNumeric = Keymaker.random(16, "numeric"); // Generate 16 characters numeric string
```

See the available type of randomness [here](https://www.npmjs.com/package/crypto-random-string#type).

### Password Generator

You can generate a password using this package by doing:

```ts
const password = Keymaker.generatePassword(); // Generate 8 character secure password
```

The password criteria is:

- Should be consist of more than or equal to 8 characters
- Has minimal one uppercase alphabet (`[A-Z]`)
- Has minimal one lowercase alphabet (`[a-z]`)
- Has minimal one numeric character (`[0-9]`)
- Has minimal one special character (`[\?\-]`)