open-index/open-npm huggingface dataset:
npm package: @rbflabs/eslint-config
Description: ## Install
Latest version: 1.0.0

# @rbflabs/eslint-config

## Install

`@rbflabs/eslint-config` needs to be installed with all of it peerdependencies. In your project run:

```sh
npx install-peerdeps --dev @rbflabs/eslint-config
```

## Usage

### ESLint

Create `.eslintrc.js` file:

```tsx
module.exports = {
  // root: true // this might be needed for projects, where tsconfig and eslintrc are not in the root
  extends: ['@rbflabs'],
  parserOptions: {
    project: './tsconfig.json',
    // tsconfigRootDir: __dirname, // this might be needed for projects, where tsconfig and eslintrc are not in the root
  },
  /** All project specific eslint rules, ignorePatterns, ...  */
};
```

### Prettier

Create `.prettierrc.js` file:

```tsx
module.exports = require('@rbflabs/eslint-config/.prettierrc.js');
```

- prettier still needs to be configured in your text editor of choice.
npm package: @rbflurry/node-red-contrib-send-form
Description: NodeRed node for posting multipart/form-data to http server
Latest version: 0.0.6
Deprecated: false

# node-red-contrib-send-form
This is a node-red node for posting http(s) requests containing files as multipart formData.

## Installation
run npm -g install @rbflurry/node-red-contrib-send-form

## Features
Pulled together using some of the best of parts of other node-red-contrib nodes (particularly node-red-contrib-http-request), and the best parts of stackoverflow.
Currently only sends files. Also Allows setting the url in msg.url

## Usage
Required node inputs:
* url 
* file source type:
  - base64 or binary buffer

### File

* **Data**  | *Buffer*   
Needs to be passed in  ``` msg.payload.file.data```
* **Name of file field** | *String*    
Needs to be passed in  ``` msg.payload.file.field```

* **Name of file** | *String*   
Needs to be passed in  ``` msg.payload.file.name```

* **Source type** | *String*   
Can be selected within the node from a dropdown menu "type" or passed in ``` msg.payload.file.type```. Payload overrides the dropdown menu.

   Currently accepts  
   - base64
   - binary

### Form fields

Can be inserted within the node or passed as part of ```msg.payload.formOptions.<name of key>```

```javascript
msg.payload.formOptions.params = 'test':
```
is the same as

```html
<input type=textbox name=params value="test">
```

### Example ```msg.payload```
 
  ```javascript
  msg.payload = {
    file: {
      field: 'file',
      data: msg.payload,
      type: 'binary',
      name: 'file'
    },
    formOptions: {
      params: '',
    }
  }
```
same as:

```html
  <form method=post enctype=multipart/form-data>
    <input type=textbox name=params value="">
    <input type=file name=file>
  </form>
```
npm package: @rbicker/jsonnet
Description: Node.js wrapper for Jsonnet
Author: Raphael Bicker
Latest version: 0.1.1-0.12.1

node-jsonnet
=============
* This module is a Node.js wrapper for Jsonnet.
* Learn more about Jsonnet here: [https://jsonnet.org/](https://jsonnet.org/)

# Changes from original repository
* Updated Jsonnet Library (Build date: 2019-03-15)
* Updated dependencies
* Moved all dependencies to devDependencies where they belong

# Jsonnet example

before:

```jsonnet
// Jsonnet Example
{
    person1: {
        name: "Alice",
        welcome: "Hello " + self.name + "!",
    },
    person2: self.person1 { name: "Bob" },
}
```

after:

```json
{
   "person1": {
      "name": "Alice",
      "welcome": "Hello Alice!"
   },
   "person2": {
      "name": "Bob",
      "welcome": "Hello Bob!"
   }
}
```



# Usage

```shell
$ npm install @rbicker/jsonnet --save
```

```javascript

const Jsonnet = require('@rbicker/jsonnet');
const fs = require('fs');

const code = fs.readFileSync("./menu.jsonnet");

const jsonnet = new Jsonnet();
// eval jsonnet to json
const result = jsonnet.eval(code);

console.log(result);
```