open-index/open-npm huggingface dataset:
npm package: @neoiq/parity-react-email
Description: <p align="center">   <img src="https://github.com/neoiq-inc/translate/blob/main/packages/react-email/image.png" /> </p>
Latest version: 1.0.0

<p align="center">
  <img src="https://github.com/neoiq-inc/translate/blob/main/packages/react-email/image.png" />
</p>

<p align="center">
  A lightweight i18n library for React Email.
</p>

---

```bash
$ npm install @neoiq/parity-react-email
```

## What is this?

This is a lightweight i18n library for React Email built on top of `i18n-js`.

Language files are automatically included in the `locales` folder.

## How to use

```tsx
import { setupI18n } from "@neoiq/parity-react-email";

export function WelcomeEmail({ locale, name }) {
  const i18n = setupI18n(locale);

  return (
    <Html>
      <Head />
      <Preview>{i18n.t("preview")}</Preview>
      <Body>
         <Text>{i18n.t("welcome", { name  })}</Text>
      </Body>
    </Html>
  );
}
```

### Translation files (en.json)

Add your translation files in the `locales` folder.

```json
{
    "preview": "Welcome to our app!",
    "welcome": "Hello, %{name}!"
}
```

### Rendering the email
```tsx
import { render } from '@react-email/render';
import { WelcomeEmail } from "./emails/welcome";

const html = await render(<WelcomeEmail locale="en" name="John" />, {
  pretty: true,
});

console.log(html);
```


## Works together with Parity CLI

Automatically add and translate your email templates with [Parity CLI](https://parity.neoiq.ai).

```bash
$ npx @neoiq/parity@latest
```
npm package: @neojsdev/mathematica
Description: Mathematical operations
Author: Denis Kotlica
Latest version: 1.0.3

# Mathematica

[![Build Status](https://travis-ci.org/neojs-dev/mathematica.svg?branch=master)](https://travis-ci.org/neojs-dev/mathematica)

Mathematical operations in JavaScript

## Install

`npm i @neojsdev/mathematica`

## Usage

```javascript
const math = require('@neojsdev/mathematica')

const plus = (x, y) => x + y

console.log(math(2, plus, 2)) // 4
```

## License

MIT