open-index/open-npm huggingface dataset:
npm package: @launchfaster/react
Description: Launchfaster UI KIT
Latest version: 0.0.1

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center"><a href="https://codewithbhargav.com/"><img src="https://avatars.githubusercontent.com/u/2936644?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bhargav Ponnapalli</b></sub></a><br /><a href="#maintenance-imbhargav5" title="Maintenance">🚧</a></td>
    </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->
npm package: @launchfasthq/cli
Description: LaunchFast CLI - Authentication and orchestration for LaunchFast projects
Author: Casal Innovations
Latest version: 1.8.0

# @launchfasthq/cli

Create a new LaunchFast project.

## Usage

```bash
npx launchfast
```

For more information, visit [launchfast.pro](https://launchfast.pro)
npm package: @launchfasthq/create
Description: CLI to scaffold a new LaunchFast project
Author: Casal Innovations
Latest version: 1.0.7

# @launchfasthq/create

Scaffold a new [LaunchFast](https://launchfast.pro) project.

## Usage

```bash
npx @launchfasthq/create
```

This will run the interactive CLI to set up your project.

## What this package does

This is a lightweight wrapper around [@launchfasthq/cli](https://www.npmjs.com/package/@launchfasthq/cli). It exists so you can run `npx @launchfasthq/create` without installing anything globally.

## Requirements

- Node.js 18 or higher

## License

MIT
npm package: @launchfort/flock-mongo
Description: Flock plugin for Mongodb
Author: Darren Schnare
Latest version: 1.0.1

# Flock Mongo

Flock Mongo is a Flock plugin for Mongodb.

## Install

```
npm install launchfort/flock-mongo
```

## Usage

```js
// .flockrc.js
const { DefaultMigrator, NodeModuleMigrationProvider } = require('@launchfort/flock')
const { DataAccessProvider, TemplateProvider } = require('@launchfort/flock-mongo')

const migrationDir = 'migrations'
const migrationTableName = 'migration'
const dap = new DataAccessProvider({ migrationTableName })
const mp = new NodeModuleMigrationProvider({ migrationDir })

exports.migrator = new DefaultMigrator(mp, dap)
exports.migrationDir = migrationDir
exports.templateProvider = new TemplateProvider()

```

## Migrations

When writing migrations that use `flock-mongo` the `QueryInterface#query`
method accepts a function that will be called with a `Mongo.Db` instance.

See: http://mongodb.github.io/node-mongodb-native/3.1/api/Db.html

Example:
```js
exports.up = queryInterface => {
  return queryInterface.query(db => {
    return db.collection('user').find({ age: 1 })
  })
}
```

The `QueryInterface#query` method accepts a function with the following signature:

```ts
// Function that resolves to a Mongo Cursor instance, a document or an array
// of documents.
(db: Db): Promise<Cursor | {} | {}[]>
```

The result of running `QueryInterface#query` will be a `Flock.QueryResult` where
`rows` will be an array of documents.

Example:
```js
exports.up = async (queryInterface) => {
  const result = await queryInterface.query(db => {
    return db.collection('user').find({ age: 1 })
  })

  // Where result.rowCount is the number or documents returned.
  // And result.rows is an array of documents.
  console.log(result.rows)
}
```

## API

Flock Mongo exports implementations of Flock's `DataAccessProvider` and `TemplateProvider` as the `DataAccessProvider` and `TemplateProvider` classes.

The `DataAccessProvider` class will connect to your Mongo DB by reading
the connection string from the `DATABASE_URL` environment variable. Optionally you
can override the behaviour by passing in the `connectionString` option to the
constructor.

If the connection string does not contain a database then the `admin` database
will be used.

See: https://docs.mongodb.com/manual/reference/connection-string/

```js
class DataAccessProvider implements Flock.DataAccessProvider {
  constructor ({
    migrationTableName = 'migration',
    connectionString = process.env.DATABASE_URL } = {})
}
```
npm package: @launchfort/hanzo
Description: Hanzo is a .css/.scss/.sass bundler.
Author: Darren Schnare
Latest version: 2.0.51
Deprecated: This package is no longer maintained

# Hanzo

Hanzo is a .css/.scss/.sass bundler.

## Quick Start

    npm install @launchfort/hanzo -S

To use the API:

    import hanzo from '@launchfort/hanzo'

    hanzo(
      [ 'sass/styles.scss', 'css/other.css' ],
      'dest/styles/styles.css',
      {
        includePaths: [ 'sass' ],
        minify: true,
        sourceMaps: true
      }
    ).then(() => console.log('styes bundled!'))
    .catch(error => console.error(error))

To use the CLI:

    {
      "scripts": {
        "bundle:styles": "hanzo sass/styles.scss css/other.css"
      }
    }

## CLI

    Usage: hanzo [options] file.css file.scss ...

    Options:
    --config            Path to JSON config file
    --verbose, -V       Print warnings to console       [boolean] [default: false]
    --minify, -M        Minify the generated bundle     [boolean] [default: false]
    --sourcemaps, -S    Generate source maps            [boolean] [default: false]
    --outfile, -O       The bundle output file                 [string] [required]
    --includepaths, -I  Include paths for .scss/.sass files
                                                            [array] [default: ["."]]
    --help              Show help                                        [boolean]

Example:

    node ./node_modules/.bin/hanzo sass/styles.sass

Or in a `package.json` (installed locally):

    {
      "scripts": {
        "build:styles": "hanzo sass/styles.sass"
      }
    }

## API

**hanzo(entryFiles, outFileName, options)**

Bundles .css/.scss/.sass files into a single file.

Supported options:

- `verbose` {default: false} Determines if compilation warnings are logged
- `sourceMaps` {default: false} Determines if source maps are generated
- `minify` {default: false} Determines if the bundle is minified
- `includePaths` {default: ['.']} The include paths for Sass imports

Example:

    import hanzo from '@launchfort/hanzo'

    hanzo(
      [ 'sass/styles.scss', 'css/other.css' ],
      'dest/styles/styles.css',
      {
        includePaths: [ 'sass' ],
        minify: true,
        sourceMaps: true
      }
    ).then(() => console.log('styes bundled!'))
    .catch(error => console.error(error))

## Building

To build the source

    npm run build
    npm run build:node

To clean all generated folders

    npm run clean

## Testing

Unit tests are expected to be colocated next to the module/file they are testing
and have the following suffix `.test.js`.

To run unit tests through [istanbul](https://istanbul.js.org/) and
[mocha](http://mochajs.org/)

    npm test

## Maintainence

To check what modules in `node_modules` is outdated

    npm run audit

To update outdated modules while respecting the semver rules in the package.json

    npm update

To update a module to the latest major version (replacing what you have)

    npm install themodule@latest -S (if to save in dependencies)
    npm install themodule@latest -D (if to save in devDependencies)
npm package: @launchfort/sonar-cli
Description: A command line tool for synchronizing project properties with the SonarCloud Web API
Author: Darren Schnare
Latest version: 0.2.3

# Sonar CLI

A command line tool for communicating with the [SonarCloud Web API](https://sonarcloud.io/web_api/).

# Installation

```
npm install --global launchfort/sonar-cli
sonar
```

# Usage

Create a `.sonar-project.json` in the root of your git repository.

```
{
  "$schema": "https://raw.githubusercontent.com/launchfort/sonar-cli/master/schemas/project.json",
  "sonar.projectKey": "some_project",
  "sonar.inclusions": [ "src" ]
}
```

Then store the settings to SonarCloud

*NOTE: All settings will be stored in SonarCloud except `sonar.projectKey`.*

```
SONAR_CLOUD_ACCESS_TOKEN=dsdfsdf sonar project store
OR
sonar project store --accessToken dsdfsdf
```

To view help:

```
sonar --help
sonar project --help
sonar project store --help
... etc.
```

## Settings Supported

The settings are supported. As found on the `SonarCloud Administration > General Settings`
page: Analysis Scope, General, Pull Requests, SCM, JavaScript and TypeScript.

To see descriptions of all settings supported see the [JSON schema](./schemas/project.json).

## Resetting settings to their defaults

To reset any setting to the default value provided by SonarCloud, then set it
to `null`.

```
{
  "$schema": "https://raw.githubusercontent.com/launchfort/sonar-cli/master/schemas/project.json",
  "sonar.projectKey": "some_project",
  "sonar.inclusions": [ "src" ],
  "sonar.typescript.file.suffixes": null
}
```

## Debugging

To see dubug messages set the env var `DEBUG` to `sonar-cli`. See the [debug](https://www.npmjs.com/package/debug)
module for further details.
npm package: @launchfort/widowmaker
Description: Eliminates any file or directory within her sights.
Author: Darren Schnare
Latest version: 2.0.5
Deprecated: This package is no longer maintained

# Widowmaker

Eliminates any file or directory within her sights.

## Quick Start

    npm install @launchfort/widowmaker -S

To use the API:

    import widowmaker from '@launchfort/widowmaker'

    widowmaker('somefile.jpg', 'dest')
      .then(() => console.log('draw them into my web!'))
      .catch(error => console.error(error))

To use the CLI:

    {
      "scripts": {
        "clean": "widowmaker dest lib somefile.js"
      }
    }

## CLI

    Usage: widowmaker [options] file file ...

    Options:
      --verbose, -V  Determines if the elapsed time should be logged       [boolean]
      --help         Show help                                             [boolean]

Example:

    node ./node_modules/.bin/widowmaker -V file.txt dest

Or in a `package.json` (installed locally):

    {
      "scripts": {
        "clean": "widowmaker -V file.txt dest"
      }
    }


## API

**widowmaker(...files)**

Delete any file or directory. Can accept variadic strings or array of strings.

Example:

    import widowmaker from '@launchfort/widowmaker'

    widowmaker('file.js', [ 'dest', 'otherfile.jpg' ], 'file.ts')
      .then(() => console.log('draw them into my web'))
      .catch(error => console.error(error))

## Building

To build the source

    npm run build
    npm run build:node

To clean all generated folders

    npm run clean

## Testing

Unit tests are expected to be colocated next to the module/file they are testing
and have the following suffix `.test.js`.

To run unit tests through [istanbul](https://istanbul.js.org/) and
[mocha](http://mochajs.org/)

    npm test

## Maintainence

To check what modules in `node_modules` is outdated

    npm run audit

To update outdated modules while respecting the semver rules in the package.json

    npm update

To update a module to the latest major version (replacing what you have)

    npm install themodule@latest -S (if to save in dependencies)
    npm install themodule@latest -D (if to save in devDependencies)
npm package: @launchfort/zenyatta
Description: Copies any file or directory to a destination directory
Author: Darren Schnare
Latest version: 3.0.3
Deprecated: This package is no longer maintained

# Zenyatta

Copies any file or directory to a destination directory

## Quick Start

    npm install @launchfort/zenyatta -S

To use the API:

    import zenyatta from '@launchfort/zenyatta'

    zenyatta([ 'src/', 'static' ], 'dest/')
      .then(() => console.log('step into the iris'))
      .catch(error => console.error(error))

To use the CLI:

    {
      "scripts": {
        "copy:assets": "zenyatta static/ --dest dest/public/ -V -N"
      }
    }

## CLI

    Usage: zenyatta srcfile srcfile ... --dest dir [options]

    Options:
      --config         Path to JSON config file
      --verbose, -V    Determines if elapsed time is logged                [boolean]
      --neweronly, -N  Only copy new files                [boolean] [default: false]
      --dest, -D       The destination directory                 [string] [required]
      --help           Show help                                           [boolean]

Example:

    node ./node_modules/.bin/zenyatta static/ --dest dest/public/ -V -N

Or in a `package.json` (installed locally):

    {
      "scripts": {
        "copy:assets": "zenyatta static/ --dest dest/public/ -V -N"
      }
    }

## API

**zenyatta(files, dest, options)**

Copies files and/or directories to a destination location.

Supported options:

- `newerOnly` {default: false} Only copy the file if newer than destination file
- `noDot` {default: true} Ignore files that start with '.'

*Copying Directories*

Directories are copied in their entirety, that is the entire directory itself.
However, if you only want the contents of a directory copied then suffix the
source directory path with `'/'` or `'\'`.

*Copying To Directories*

To copy to a directory *and* create it if doesn't exist then suffix the
destination directory path with `'/'` or `'\'`.

Example:

    import zenyatta from '@launchfort/zenyatta'

    // Copy all files in src into dest, where dest will be created if it doesn't
    // exist already. Also, copy the entire static directory to dest.
    // Ends up with something like: dest/index.js, dest/jquery.min.js
    zenyatta([ 'src/', 'static' ], 'dest/')
      .then(() => console.log('step into the iris'))
      .catch(error => console.error(error))

## Building

To build the source

    npm run build
    npm run build:node

To clean all generated folders

    npm run clean

## Testing

Unit tests are expected to be colocated next to the module/file they are testing
and have the following suffix `.test.js`.

To run unit tests through [istanbul](https://istanbul.js.org/) and
[mocha](http://mochajs.org/)

    npm test

## Maintainence

To check what modules in `node_modules` is outdated

    npm run audit

To update outdated modules while respecting the semver rules in the package.json

    npm update

To update a module to the latest major version (replacing what you have)

    npm install themodule@latest -S (if to save in dependencies)
    npm install themodule@latest -D (if to save in devDependencies)
npm package: @launchgood/common
Description: Common models, filters, & other goodies for use with Nest.js
Author: "Matthew J. Martin"
Latest version: 0.2.6

# nestjs-common

Common models, filters, &amp; other goodies for use with Nest.js

## AMQP Typed Client

**Configure**

Requires an `RMQ_URL` to be defined in your config via env variable or .env, etc.

**Import It**

```JavaScript
import { Module } from '@nestjs/common';
import { CommonModule } from '@launchgood/common';

@Module({
  imports: [CommonModule],
  exports: [CommonModule],
})
export class YourModule {}
```

**Use It**

```JavaScript
import { Injectable } from '@nestjs/common';
import { TypedRpcClientService } from '@launchgood/common';
import { SomeType } from './some-type';

@Injectable()
export class LedgerService {
  constructor(private client: TypedRpcClientService) {}

  public async doSomething(): Promise<SomeType> {
    const someType = await this.client.request<SomeType>({
      exchange: 'some-exchange',
      routingKey: 'some-routing-key',
      type: SomeType,
    });
  }
}

```

## General Exception Filter for RPC

```JavaScript
import { Controller, UseFilters, UsePipes } from '@nestjs/common';
import {
  MessageHandlerErrorBehavior,
  RabbitRPC,
  RabbitSubscribe,
  RabbitPayload,
} from '@golevelup/nestjs-rabbitmq';
import { ValidationPipe } from '@nestjs/common';
import { GeneralExceptionFilter } from '@launchgood/common';
import { SomeService } from './services';
import { SomeType, SomeOtherType } from './models';

@Controller()
export class SomeController {
  constructor(private service: SomeService) {}

  @RabbitRPC({
    exchange: 'some-service',
    routingKey: 'write',
    queue: 'some-service',
    errorBehavior: MessageHandlerErrorBehavior.ACK,
  })
  @UsePipes(new ValidationPipe({ transform: true })) // <-- this transforms and validates the JSON from AMQP based on annotations
  @UseFilters(new GeneralExceptionFilter()) // <--- this line adds handling for errors to your RPC
  async write(
    @RabbitPayload() someType: SomeType,
  ): Promise<SomeOtherType> {
    return await this.service.doSomething(someType);
  }
}
```