open-index/open-npm huggingface dataset:
npm package: @fattafatta/babel-preset-rescript-solidjs
Description: Babel preset to transform ReScript code to solidJs.
Author: Fattafatta
Latest version: 0.2.2

# babel-preset-rescript-solidjs

Applies all necessary transformations to compile [ReScript](https://rescript-lang.org/) code to [solidJs](https://github.com/solidjs/solid).

The original code compiled by `ReScript` is not compatible with `solid`. First, the ReScript compiler breaks reactivity by reassigning component properties to variables. And second, `solid` compiler expects JSX, but ReScript compiles all JSX directly to JavaScript.

This preset replaces the variable assignments and transforms the `ReScript` JavaScript code back to JSX. Afterwards it runs the [preset](https://github.com/solidjs/solid/tree/main/packages/babel-preset-solid) provided by `solid` to compile the code.

## Installation

```sh
$ npm install @fattafatta/babel-preset-rescript-solidjs --save-dev

# or

yarn add @fattafatta/babel-preset-rescript-solidjs --dev
```

## Usage

The plugin supports JSX versions 3 and 4 with automatic version detection.

### Via config file

Add this to your `.babelrc`:

```json
{
  "presets": ["@fattafatta/babel-preset-rescript-solidjs"]
}
```

### With `vite`

Install `vite-plugin-babel` and `@jihchi/vite-plugin-rescript`:

```shell
npm install vite-plugin-babel @jihchi/vite-plugin-rescript --save-dev

# or
yarn add vite-plugin-babel @jihchi/vite-plugin-rescript --dev
```

Configure `vite.config.js`

```js
import { defineConfig } from "vite";
import createReScriptPlugin from "@jihchi/vite-plugin-rescript";
import babel from "vite-plugin-babel";

export default defineConfig({
  plugins: [
    createReScriptPlugin(),
    babel({
      babelConfig: {
        presets: ["@fattafatta/babel-preset-rescript-solidjs"],
      },
    }),
  ],
  resolve: {
    dedupe: ['solid-js'],
  },
});
```

**Note**: Sometimes `vite` bundles parts of the `solidJS` dependencies twice, which results in errors (like lazy components not loading correctly). If you get the warning `You appear to have multiple instances of Solid. This can lead to unexpected behavior.`, use the option `resolve.dedupe` like above and the problem should be fixed.

The babel plugin works with either the `.babelrc` file or by passing the config directly.

### Via CLI

Make sure to use the correct file extension when transforming files. ReScript files end on `.bs.js`. But JSX files should use `.jsx`.

```sh
babel --no-babelrc --presets @fattafatta/babel-preset-rescript-solidjs script.bs.js > script.jsx
```
npm package: @fattafatta/rescript-react-lazy
Description: Minimal ReScript bindings for React.lazy
Author: Fattafatta
Latest version: 0.1.2

# rescript-react-lazy

Minimal bindings to use `React.lazy` with ReScript.

## Installation

Install with `npm`:

```bash
npm install @fattafatta/rescript-react-lazy
```

Or install with `yarn`:

```bash
yarn add @fattafatta/rescript-react-lazy
```

Add `@fattafatta/rescript-react-lazy` as a dependency to your `bsconfig.json`:

```json
"bs-dependencies": ["@rescript/react", "@fattafatta/rescript-react-lazy"]
```

## Usage

Check out the `example` folder for a fully working example.

### Components without props

First create a Component to import in a separate file (e.g. `Component.res`). 

This will lazy-load the component:
```rescript
module App = {
  @react.component
  let make = () => {
    let module(Comp) = ReactLazy.NoProps.make(() => ReactLazy.import_("./Component.bs"))
    <Comp /> 
  }
}
```

### Component with props

First create a Component with props to import in a separate file (e.g. `Component.res`). 
We use a Functor to set the type of the imported component.

```rescript
// define type
module C = {
  module type T = module type of Component
}

// create Functor
module Laz = ReactLazy.MakeLazy(C)

// lazy-load component
module Comp = unpack(Laz.make(() => ReactLazy.import_("./Component.bs"), Component.makeProps))

module App = {
  @react.component
  let make = () => {
    <Comp text="Hello World!" /> 
  }
}
```


## Notes

The code generated with these bindings is not completely type safe. It is easily possible to set the wrong type of a component, by for example creating a Functor with `Component1.res` but importing `./Component2.bs`. There is no way for the compiler to warn about this. So always make sure to import the right component.

There is an open discussion about dynamic imports on the ReScript forum that might solve this: [Discussion](https://forum.rescript-lang.org/t/rfc-dynamic-imports-in-rescript/3605).
npm package: @fattist/isomeow
Description: isomeow is a CLI util to help generate isomorphic react-native client apps.
Author: @jtich
Latest version: 1.0.0

# isomeow 🐈

`isomeow` is a CLI tool that generates new React Native projects with isomorphic scaffolding from jumpstreet. Like a cat, `isomeow` nimbly bimbly balances between convention _and_ configuration.

This tool includes:

- Auth0 integration (via `react-native-auth0`)
- Navigation integration (via `react-navigation`)
- Localization support (via `react-i18next`)
- Redux integration
- TypeScript support
- Builtin npm script commands for common RN-specific tasks (e.g. clear cache and rebuild/bundle via `npm run rebundle`)
- And meow-re! 🐈

## Installation

To install `isomeow` via npm, run:

`$ npm i -g @fattist/isomeow`

To skip installation, run the following:

`$ npx isomeow init`

## Usage

To get started, `cd` into your new projects parent directory and run the following:

`$ isomeow init`

Alternatively, you can pass in the project name as an argument:

`$ isomeow init MeowMeow`
npm package: @fatturazione-elettronica-aruba/nuxt
Description: Nuxt module for Aruba Electronic Invoicing SDK
Latest version: 0.2.0

# @fatturazione-elettronica-aruba/nuxt

Nuxt module for [Aruba Electronic Invoicing SDK](https://github.com/zangetsu02/fatturazione-elettronica-aruba).

## Features

- Server-side only composables for security
- Auto-imported utilities in Nitro server routes
- TypeScript support out of the box
- Automatic OAuth2 authentication

## Installation

```bash
pnpm add @fatturazione-elettronica-aruba/nuxt
```

## Configuration

Add the module to your `nuxt.config.ts`:

```ts
export default defineNuxtConfig({
  modules: ['@fatturazione-elettronica-aruba/nuxt'],

  fatturazioneAruba: {
    environment: 'demo', // or 'production'
  },

  runtimeConfig: {
    fatturazioneAruba: {
      username: '', // Set via NUXT_FATTURAZIONE_ARUBA_USERNAME
      password: '', // Set via NUXT_FATTURAZIONE_ARUBA_PASSWORD
    },
  },
});
```

### Environment Variables

For security, credentials should be set via environment variables:

```env
NUXT_FATTURAZIONE_ARUBA_USERNAME=your_username
NUXT_FATTURAZIONE_ARUBA_PASSWORD=your_password
```

## Usage

The module provides server-side composables that are auto-imported in your Nitro server routes:

### `useArubaClient()`

Returns the main ArubaClient instance:

```ts
// server/api/user.get.ts
export default defineEventHandler(async () => {
  const client = useArubaClient();
  return await client.auth.getUserInfo();
});
```

### `useArubaInvoices()`

Manage electronic invoices:

```ts
// server/api/invoices/sent.get.ts
export default defineEventHandler(async () => {
  const invoices = useArubaInvoices();

  return await invoices.findSent({
    creationDateStart: '2024-01-01',
    creationDateEnd: '2024-12-31',
  });
});
```

### `useArubaNotifications()`

Handle SDI notifications:

```ts
// server/api/notifications/receipts.get.ts
export default defineEventHandler(async () => {
  const notifications = useArubaNotifications();

  return await notifications.findDeliveryReceipts({
    creationDateStart: '2024-01-01',
    creationDateEnd: '2024-12-31',
  });
});
```

### `useArubaCommunications()`

Manage AdE communications (VAT liquidations, etc.):

```ts
// server/api/communications/liquidazioni.get.ts
export default defineEventHandler(async () => {
  const communications = useArubaCommunications();

  return await communications.findLiquidazioni({
    creationDateStart: '2024-01-01',
    creationDateEnd: '2024-12-31',
  });
});
```

## Security

All composables are **server-side only** and cannot be used in client-side code. This ensures your API credentials are never exposed to the browser.

## License

MIT
npm package: @fattureincloud/helpcenter-types
Description: Fatture in Cloud Help center types library
Latest version: 0.2.0

# TypeScript library that exports help-center widget types

it adds to the Window element function to manage Fatture in Cloud HelpCenter

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
```
npm package: @fattureincloud/madbit-js-dates
Description: MadBit javascript library for manipulating and displaying dates
Author: Michele Menegatti
Latest version: 0.2.0

<img src='https://fattureincloud-resources.s3.eu-west-1.amazonaws.com/images/js-date-cover.svg' />

# MADBIT JS DATES #
[![Version badge](https://img.shields.io/badge/version-0.2.0-brightgreen)](https://shields.io/)&nbsp;&nbsp;&nbsp;[![License badge](https://img.shields.io/badge/license-MIT-blue)](https://shields.io/)

<br />

## Summary ##
MadBit JS Dates is a library used to manipulate and display dates.
At the moment it uses date-fns under the hood.

Support english, italian and spanish languages.

<br />

## How do I get set up? ##
```
# Npm
npm install madbit-js-dates

# Yarn
yarn add madbit-js-dates
```

<br />

## How to use it ##
```
import format from 'madbit-js-dates/format'

format('2023-07-07', 'dd/MM/yyyy', 'it')
```

<br/>

## Shortcuts ##
| Parsable shortcuts | Corresponding value |
| --- | --- |
| 'now' | current date and time |
| 'NOW' | current date and time |
| 'yesterday' | yesterday date at this time |
| 'YESTERDAY' | yesterday date at this time |
| 'tomorrow' | tomorrow date at this time |
| 'TOMORROW' | tomorrow date at this time |

<br />

| Format shortcuts | Corresponding format |
| --- | --- |
| 'SQL' | SQL date format (YYYY-MM-DD) |
| 'SQL+T' | SQL datetime format (YYYY-MM-DD HH:mm:ss) |
| 'IT' | Italian date format (DD/MM/YYYY) |
| 'IT+T' | Italian datetime format (DD/MM/YYYY HH:mm:ss) |
| 'IT_FULL' | Italian date with month name (Ex. 22 May 2000) |
| 'IT_FULL+T' | Italian date and time with month name (Ex. 22 May 2000 13:34:55) |

<br />
<br />

## Developed by ##
### Michele Menegatti ###
npm package: @fattureincloud/react-scripts
Description: Fatture in cloud configuration and scripts for Create React App. Forked from CRA 3.2.0.
Latest version: 0.1.15-tirana2

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
npm package: @fatyu/node-git-diff
Description: git diff 脚本
Author: Arima
Latest version: 0.4.0

# @fatyu/git-diff

## 能力

- 通过命令行快速选择需要 diff 的分支、tag、commit
- 支持输出简单的比较结果 csv
  - 包含修改文件路径、修改行数
  - 可以过滤不需要比较文件类型

## 快速开始

### 安装

```sh
# npm
npm i @fatyu/git-diff -D

# yarn
yarn add @fatyu/git-diff -D
```

### 使用

```sh
# 简单使用

  # npm
  npm git-diff

  # yarn
  yarn git-diff

# 更多例子（yarn 为例)

  # 帮助
  yarn git-diff -h
```

### 命令行参数

| 简写 | 参数                | 含义                                                           |
| :--- | :------------------ | :------------------------------------------------------------- |
| -v   | --version           | @fatyu/git-diff 的版本                                         |
| -f   | --file-type [type]  | 输出文件类型 (choices: "csv", "diff", "patch", default: "csv") |
| -s   | --source [source]   | 来源分支、tag、commit                                          |
| -t   | --target [target]   | 目标分支、tag、commit                                          |
| -e   | --exclude [exclude] | 需要忽略的文件类型，以`竖线`分割                               |
| -h   | --help              | 输出帮助内容                                                   |
npm package: @fatyu/zip
Description: compress resource cli
Latest version: 1.4.1

# @fatyu/zip

> compress resource cli

## 能力

- 压缩文件、文件夹为 zip 压缩包
- 支持加密压缩

## 快速开始

### 安装

```sh
# npm
npm i @fatyu/zip -D

# yarn
yarn add @fatyu/zip -D
```

### 使用

```sh
# 简单使用

  # npm
  npm zip -p /relative-path/to/target

  # yarn
  yarn zip -p /relative-path/to/target

# 更多例子（yarn 为例)

  # 帮助
  yarn zip -h
```