open-index/open-npm huggingface dataset:
npm package: @lerealfede/uploadstuff
Description: `npm install @lerealfede/uploadstuff`
Latest version: 0.1.2

# UploadStuff

## Install

`npm install @lerealfede/uploadstuff`

## Docs

fork of:
[https://uploadstuff.dev](https://uploadstuff.dev)

Make it so on onUploadBegin will return a File instead of a string with the fileName.

Add shouldFileUpload to the UploadDropzone:
```
  shouldFileUpload?: (file: File) => FileError | null;
```
(same signature and behaviour as react-dropzone validator https://react-dropzone.js.org/)

Add onBeforeUpload to the UploadDropzone:
```
  onBeforeUpload?: (file: File) => Promise<File | null>;
```
return: null to exclude a file or File that should be update.
Unlike shouldFileUpload this accept async function and can also modify the file before the upload.

Add uploadLabel to UploadDropzone:
```
  uploadLabel?: string;
```
default value : "Choose files or drag and drop"

Made for my personal use.
npm package: @lerepo/cli
Description: Command line interface for the mono-repo workspace collection of tools.
Latest version: 0.2.3

# Workspace tools command line interface

LeRepo CLI `lrt` is the entry point to the collection of workspace tools for
enhancing and simplifying the experience of using multi-workspace monorepos.

It currently supports the following commands:

- **lrt web**: a locally served web app to visualize and analyze dependencies
  inside a multi-workspace project,

## Usage

The easiest way to invoke the CLI with zero impact on the project is to run it
through `yarn dlx`. For example:

```shell
$ yarn dlx -p @lerepo/cli lrt web
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 15.34s
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0.25s
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0.55s
➤ YN0000: Done in 16.18s

Start web server
Server is listening at http://localhost:3211
```
npm package: @lerepo/detect-package-manager
Description: Library to detect which package manager is being used.
Latest version: 0.1.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Detect which package manager is being used

This is a library and a cli to automatically detect which package manager is
being used in the current project. The project can be a single workspace or a
multi-workspace project.

Detected package managers are:

- npm
- yarn (v1)
- yarn berry (v2)
- pnpm

## Usage

```javascript
import { detectPackageManagers, PackageManager } from '@lerepo/detect-package-manager';

const found: PackageManager = await detectPackageManagers({
  preference: ['pnpm', 'yarn']
});
if (found) console.log(`${found.name} ${found.version}`);
```

```javascript
import { detectInstalledPackageManagers } from '@lerepo/detect-package-manager';

const found: PackageManager[] = await detectInstalledPackageManagers({
  preference: ['pnpm', 'yarn']
});
console.log(found);
```
npm package: @lerepo/detect-package-manager-cli
Description: CLI to detect which package manager is being used.
Latest version: 0.2.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Detect which package manager is being used

This is a library and a cli to automatically detect which package manager is
being used in the current project. The project can be a single workspace or a
multi-workspace project.

Detected package managers are:

- npm
- yarn (v1)
- yarn berry (v2)
- pnpm

## CLI Usage

The easiest way to invoke the CLI with zero impact on the project is to run it
through `yarn dlx` or `npx`. For example:

```shell
$ yarn dlx -p @lerepo/detect-package-manager-cli detect-pm
yarn 2.1.1

$ yarn dlx -p @lerepo/detect-package-manager-cli detect-pm --help
Detect installed or used package managers.

Usage:

$ detect-pm [--preference,-p #0] [--cwd #0] [--json] [--installed]

Details:

This command will detect the package manager used in the workspace/project. It
used any available `engines` section in the package manifests or package manager
specific files in the project hierarchy to identify the package manager. If no
such information is available in the current working directory, it crawls the
hierarchy until it finds the root project or it reaches the root of the
filesystem. To set the starting working directory to a different value from the
current one, you can use the `--cwd` option. If the `--installed` option is set,
it will instead detect the installed package managers in the environment. If you
want the output of the command to be in new-line-delimited JSON, set the
`--json` option. The command may find presence of multiple package managers in
the project or definitive choice in the package manifests. In such case, it will
prefer the package managers in the following order `yarn > pnpm > npm`. To
change the preference order, use the `--preference,-p` option (multiple times to
set multiple preferences).

Examples:

Detect using all default options
  $ detect-pm

Detect and output the result in json format
  $ detect-pm --json

Detect and with specific preferences
  $ detect-pm -p pnpm -p yarn

Detect installed package managers
  $ detect-pm --installed

```
npm package: @lerepo/detect-pm
Description: Library to detect which package manager is being used.
Latest version: 0.3.4

# Detect which package manager is being used

This is a library and a cli to automatically detect which package manager is
being used in the current project. The project can be a single workspace or a
multi-workspace project.

Detected package managers are:

- npm
- yarn (v1)
- yarn berry (v2)
- pnpm

## Usage

```javascript
import {
  detectPackageManagers,
  PackageManager
} from '@lerepo/detect-package-manager';

const found: PackageManager = await detectPackageManagers({
  preference: ['pnpm', 'yarn']
});
if (found) console.log(`${found.name} ${found.version}`);
```

```javascript
import { detectInstalledPackageManagers } from '@lerepo/detect-package-manager';

const found: PackageManager[] = await detectInstalledPackageManagers({
  preference: ['pnpm', 'yarn']
});
console.log(found);
```
npm package: @lerepo/detect-pm-cli
Description: CLI to detect which package manager is being used.
Latest version: 0.4.3

# Detect which package manager is being used

This is a library and a cli to automatically detect which package manager is
being used in the current project. The project can be a single workspace or a
multi-workspace project.

Detected package managers are:

- npm
- yarn (v1)
- yarn berry (v2)
- pnpm

## CLI Usage

The easiest way to invoke the CLI with zero impact on the project is to run it
through `yarn dlx` or `npx`. For example:

```shell
$ yarn dlx -p @lerepo/detect-package-manager-cli detect-pm
yarn 2.1.1

$ yarn dlx -p @lerepo/detect-package-manager-cli detect-pm --help
Detect installed or used package managers.

Usage:

$ detect-pm [--preference,-p #0] [--cwd #0] [--json] [--installed]

Details:

This command will detect the package manager used in the workspace/project. It
used any available `engines` section in the package manifests or package manager
specific files in the project hierarchy to identify the package manager. If no
such information is available in the current working directory, it crawls the
hierarchy until it finds the root project or it reaches the root of the
filesystem. To set the starting working directory to a different value from the
current one, you can use the `--cwd` option. If the `--installed` option is set,
it will instead detect the installed package managers in the environment. If you
want the output of the command to be in new-line-delimited JSON, set the
`--json` option. The command may find presence of multiple package managers in
the project or definitive choice in the package manifests. In such case, it will
prefer the package managers in the following order `yarn > pnpm > npm`. To
change the preference order, use the `--preference,-p` option (multiple times to
set multiple preferences).

Examples:

Detect using all default options
  $ detect-pm

Detect and output the result in json format
  $ detect-pm --json

Detect and with specific preferences
  $ detect-pm -p pnpm -p yarn

Detect installed package managers
  $ detect-pm --installed

```
npm package: @lerepo/web-app
Description: Companion web-app for @lerepo/cli.
Latest version: 0.2.3

# Web UI to the workspace tools

You can anlyze and visualize dependencies inside a multi-workspace projects
using a graphical interface provided by a locally served web app.

## Usage

The easiest way to start the web app is to run it through `yarn dlx`:

```shell
$ yarn dlx -p @lerop/cli lrt web
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 15.34s
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0.25s
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0.55s
➤ YN0000: Done in 16.18s

start web serverServer is listening at http://localhost:3211
```

Then simply open a web browser and point it at the server URL displayed by the
CLI command.