open-index/open-npm huggingface dataset:
npm package: @lmego/sls-off-multi
Description: A wrapper for serverless-offline that allows multiple instances to be ran concurrently with watch functionality
Author: lmego
Latest version: 1.0.8

# sls-off

> Fork `serverless-offline-multi` in [LINK](https://github.com/isitgeorge/serverless-offline-multi).

> A wrapper for `serverless-offline` that allows multiple instances to be ran concurrently with watch functionality. This is achieved using `concurrently` and `nodemon`.

## Prerequisites

You'll need `serverless` installed globally, and `serverless-offline` installed into your project before running this wrapper.  

## Install

```bash
npm install -g serverless-offline-multi
```

## Usage

There are two parameters that are passed to the wrapper, `directory` and `port`which specify the relative directory and port number that you wish for the `serverless-offline` process to listen on, respectively.

```bash
serverless-offline-multi --directory service-mailing --port 3001
```
These parameters can be repeated (in pairs) for multiple services, as follows:

```bash
serverless-offline-multi --directory service-mailing --port 3001 --directory service-account --port 3002
```

## HTTP Port & Lambda Port

* By default, `httpPort` is always the same as `http`.
* `lambdaPort` is always `httpPort/http` + 1000. Example, running with `--port 3004` will result in: `http: 3004`, `httpPort: 3004` and `lambdaPort: 4004` (port + 1000 to avoid conflict)

## Contributing
Contributions are very welcome, and I will gladly merge in features/bug fixes.

## License

MIT
npm package: @lmeikle/calculate-distance-util
Description: Given a set of 4 coordinates calculates the distance in KM between them.
Author: lmeikle
Latest version: 3.0.4

calculate-distance-util

Given a set of 4 coordinates calculates the distance in KM between them.

## Example:

```javascript
import calculateDistance from '@lmeikle/calculate-distance-util';

let distance = calculateDistance(a, b, c, d);
```

## Commands

#### Building

The build is uglified to `dist/calculate-distance-util.min.js`, Sourcemaps are generated

    1. npm run build

To publish:

    1. npm run prepublish
    2. npm publish --access public

#### Running Locally

    1. npm run start

## Bundle Sizes

| Type     | Size        |
| -------- | ----------- |
| Minified | '514 bytes' |
npm package: @lmeikle/my-mono-repo-to-single-package
Description: A single npm package containing multiple packages
Author: lmeikle
Latest version: 1.4.0

# my-mono-repo-to-single-repo

Removing the need for Lerna by converting to a single npm package.<br>
At present contains 2 packages: calculate-distance-util and simple-loading-component.

##### Download and Installation:

* npm install

##### Running locally:

* npm run start

##### Testing:

* npm run test (will run all tests)

##### Building:

* npm run build

##### Publishing:

* npm publish --access public (will automatically run prepublish first)

#### Structure

    <pre>
    |-- dist (Compiled)
    |   `-- index.js
    |-- src
    |   |-- calculate-distance-utils
    |   |-- simple-loading-spinner
    |   `-- index.js
    `-- webpack.config.js
    </pre>

# calculate-distance-util

Given a set of 4 coordinates calculates the distance in KM between them.

## Example:

```javascript
import { calculateDistance } from '@lmeikle/my-mono-repo-to-single-package';

let distance = calculateDistance(a, b, c, d);
```

# simple-loading-spinner

Renders a simple react loading spinner.<br/>

### Example:

```javascript
import React, { Component } from 'react';
import { LoadingComponent } from '@lmeikle/my-mono-repo-to-single-package';

class HelloWorld extends Component {
  render() {
    return <LoadingComponent />;
  }
}
export default HelloWorld;
```
npm package: @lmeikle/my-tiny-npm-package
Description: just playing with making an npm package
Author: lmeikle
Latest version: 1.0.1

# @lmeikle/my-tiny-npm-package

[![npm (scoped)](https://img.shields.io/npm/v/@lmeikle/my-tiny-npm-package.svg)](https://www.npmjs.com/package/@lmeikle/my-tiny-npm-package)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@lmeikle/my-tiny-npm-package.svg)](https://www.npmjs.com/package/@lmeikle/my-tiny-npm-package)

Removes all spaces from a string.

## Install

```
$ npm install @lmeikle/my-tiny-npm-package
```

## Usage

```js
const tiny = require("@lmeikle/my-tiny-npm-package");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
npm package: @lmeikle/simple-loading-spinner
Description: Renders a simple react loading spinner
Author: lmeikle
Latest version: 3.0.4

simple-loading-spinner

Renders a simple react loading spinner using Webpack 4.<br/>
Based on: https://www.npmjs.com/package/react-webpack-component

### Example:

```javascript
import React, { Component } from 'react';
import { LoadingComponent } from '@lmeikle/simple-loading-component';

class HelloWorld extends Component {
  render() {
    return <LoadingComponent />;
  }
}
export default HelloWorld;
```

### Commands

#### Building

Compile in mode production:

    1. npm run build

To publish:

    1. npm run prepublish
    2. npm publish --access public

#### Running Locally (Watch changes in mode development)

    1. npm run start

#### Testing (using Jest with Enyzme)

      1. npm run test

#### Structure

    <pre>
    |-- dist (Compiled)
    |   `-- index.js
    |-- src
    |   |-- loading
    |   `-- index.js
    `-- webpack.config.js
    </pre>
npm package: @lmemunoz/reverse-sentence
Description: reverse a sentence
Author: Luis Munoz
Latest version: 1.0.1

��# reverse-sentence
Reverses the words of a sentence.
## Install

npm install @luismunozaton/reverse-sentence

## API

require("reverse-sentence") => Function
reverse(sentence) => String

## Example

const reverseSentence = require("reverse-sentence");
const sentence = "Hello Luis!"; 
const reversed = reverseSentence(sentence); 
console.log(reversed) // Luis! Hello

## License
MIT
npm package: @lmenezes/json-tree
Description: json-tree
Author: Leonardo Menezes
Latest version: 1.0.1

![Node.js CI](https://github.com/lmenezes/json-tree/workflows/Node.js%20CI/badge.svg?branch=master)

# json-tree

simple JS library that creates an html navigable tree from JSON object.

## Usage

Use the function `JSON.create(data)` to transform a data object into raw HTML which can then be set as the innerHTML of
an existing element.
 
![](./imgs/example_code.png)

The result of the previous example should render the following structure:

![](./imgs/example_view.gif)

## Customising the looks

The colors of the generated structure can be customised through the following CSS classes:

- jstTree: Class applied to div element wrapping the whole structure

- jstProperty: Class applied to property names

- jstBool: Class applied to boolean values

- jstNum: Class applied to numeric values

- jstNull: Class applied to null values

- jstStr: Class applied to string values

- jstComma: Class applied to commas

- jstColon: Class applied to colon separating property name from property value

- jstCollapse: Class applied to the collapse symbol

- jstExpand: Class applied to the expand symbol

- jstBracket: Class applied to brackets (both {} and [])

- jstHiddenBlock: Class applied to collapsed blocks
npm package: @lmeniconi/adonis-drive-sftp
Description: SFTP storage driver for AdonisJS drive
Author: lmeniconi
Latest version: 0.1.3

# Configuration
Run the following command to configure the package

```bash
node ace configure @lmeniconi/adonis-drive-sftp
```


# Usage
Example of use in a controller

```ts
  const fileName = 'example.txt'

  const sftp = Drive.use('sftp')
  await sftp.put(fileName, "hello world")
```
npm package: @lmes/clog
Description: Captures console.log and send to logtail
Latest version: 0.0.11

# Clog

Captures console.log and send to logtail

#### Usage

```js
import { Clog } from '../src';

Clog.init('YOUR_LOGTAIL_TOKEN');

console.log('Hello World'); // this will log in console as well streamed to logtail
```

#### On Logtail

<img width="801" alt="Screenshot 2022-10-26 at 10 49 43 PM" src="https://user-images.githubusercontent.com/5327489/198093660-a19c062c-dfc3-4bbd-9c79-02498bbef655.png">

#### On Terminal
![carbon (1)](https://user-images.githubusercontent.com/5327489/198103246-598691c1-0c43-4e2e-a3e2-3c8d606b57d5.png)
npm package: @lmes/dropbox-upload
Description: Oneliner to Upload Large Files to  Dropbox
Latest version: 1.7.0-rc.1

# Dropbox Upload

Oneliner to Upload Large Files to Dropbox

#### Upload single file

```js
import { upload } from '@lmes/dropbox-upload';

upload(
  { refreshToken: '', appKey: '', appSecret: '' },
  '/tmp/video.mp4',
  '/videos/video.mp4'
);
```

#### Upload folder

```js
import { uploadDir } from '@lmes/dropbox-upload';

uploadDir(
  { refreshToken: '', appKey: '', appSecret: '' },
  '/files',
  '/dropbox-folder'
);
```