open-index/open-npm huggingface dataset:
npm package: @matschik/lz-string
Description: Modern port of LZ-String
Author: Alexandre Mouton-Brady
Latest version: 0.0.2

# @matschik/lz-string

This is a modern port of the original [lz-string](https://github.com/pieroxy/lz-string).

## What does modern means?

The project was not really supported and maintained anymore.

I rewrote it in modern javascript syntax, typescript, compiled it with [esbuild](https://esbuild.github.io/) and wrote tests with [uvu](https://github.com/lukeed/uvu).

The size is much smaller and it play nicer with modern bundlers.

## Install

```bash
$ npm install @matschik/lz-string
```

## Example

```js
import { compress, decompress } from '@matschik/lz-string'

const compressed = compress('hello world')
const decompressed = decompress(compressed)
```

## API

The API is the same as [lz-string](https://github.com/pieroxy/lz-string), minus a few methods that needs re-implementations:

* compressToUTF16(input: string): string;
* decompressFromUTF16(compressed: string): string;
* compressToUint8Array(uncompressed: string): Uint8Array;
* decompressFromUint8Array(compressed: Uint8Array): string;

### compressToBase64(input: string): string;

### decompressFromBase64(input: string): string | null;

### compressToURL(input: string): string;

### decompressFromURL(input: string): string | null;

### compress(uncompressed: string): string;

### decompress(compressed: null | string): string | null;
npm package: @matserdkamp/zupa
Description: Minimal Vite+ package scaffolded with vp create and built with vp pack.
Latest version: 0.1.0

# zupa

Minimal npm package scaffolded with Vite+ and bundled with `vp pack`.

For now, this package is intentionally empty. The publishable artifact is mainly the package metadata and this README while the API surface is still being defined.

## Commands

```bash
vp install
vp test
vp pack
```

## Publish

`npm publish` will run `prepublishOnly`, which builds the package via `vp pack` before publishing.
npm package: @matsgottenbos/eslint-plugin-import-alias
Description: ESLint rule for restricting imports to path aliases
Author: Mats Gottenbos
Latest version: 1.2.3

# eslint-plugin-import-alias

An ESLint rule for forcing import path aliases.

This is a fork of <https://github.com/steelsojka/eslint-import-alias> by Steven Sojka. The original project seems to be abandoned.

## Installation

```shell
yarn add -D @matsgottenbos/eslint-plugin-import-alias
```

## Usage

```javascript
import { test } from '~/test'; // valid
import { test } from '@src/test'; // valid
import { test } from './test'; // invalid
import { test } from '../test'; // invalid

// Optional relative depth can be specified to allow unaliased paths when they do not go up to parent directories higher than the relative depth
import { test } from './test'; // valid, { relativeDepth: 0 }
import { test } from './test/test'; // valid, { relativeDepth: 0 }
import { test } from '../test'; // valid, { relativeDepth: 1 }
import { test } from '../../test'; // invalid, { relativeDepth: 1 }
```

## Configure

```javascript
{
  "rules": {
    "import-alias/import-alias": [
      "error",
      {
        "relativeDepth": 0,
        "aliases": [
          // Example: rewrites imports pointing to `src/modules/app/index.js` to `@src/modules/app/index.js`
          { "alias": "@src", "matcher": "^src" },

          // Example: rewrites imports pointing to `test/unit/modules/app` to `@test/modules/app`
          { "alias": "@test", "matcher": "^test\/unit" },

          // Example: rewrites imports pointing to `test/e2e/modules/app` to `@testRoot/e2e/modules/app`
          { "alias": "@testRoot", "matcher": "^(test)\/e2e" },
        ]
      }
    ]
  }
}
```

Aliases can be configured to fix the path and rewrite to an aliased path. Each alias has the alias text and a regex matcher that will match against the resolved path from the root directory of the eslint process (usually the project root). For example, if the resolved file path is in the 'src' folder (src/modules/app/test) then 'src' will be replaced with '@src'.
Optionally, you can define a capture group to replace only the part within the capture group, but still match against the whole regex.

A 'rootDir' can be defined to resolve the file paths from. This defaults to `process.cwd()`. In a lot of cases, this is already the project root in most cases.

```javascript
{
  "rules": {
    "import-alias/import-alias": [
      "error",
      {
        "relativeDepth": 0,
        "rootDir": __dirname,
        "aliases": [
          // Example: rewrites imports pointing to `src/modules/app/index.js` to `~/modules/app/index.js`
          { "alias": "~/", "matcher": "^" },

          // Example: rewrites imports pointing to `src/modules/app/index.js` to `@src/modules/app/index.js`
          { "alias": "@src", "matcher": "^src" },
        ]
      }
    ]
  }
};
```
npm package: @matsilva/xtranslate
Description: Simple client side cross framework translation lib
Author: Mat Silva
Latest version: 0.1.5

# @matsilva/xtranslate

[![CI](https://github.com/matsilva/xtranslate/actions/workflows/ci.yml/badge.svg)](https://github.com/matsilva/xtranslate/actions/workflows/ci.yml)
[![Release: Automated with xrelease](https://img.shields.io/badge/Release-Automated%20with%20xrelease-blueviolet?logo=github&logoColor=white)](https://github.com/matsilva/xrelease)

A simple, re-useable i18n translate lib for any client side framework
npm package: @matsos/expected-wins
Description: A simple javascript library based on a formula developed by baseball statistician Bill James. It attempts to determine the number of games a team should have won, by comparing the total number of runs a team has scored to the number of runs it has allowed
Latest version: 2.1.0

# @matsos/expected-wins

![npm](https://img.shields.io/npm/v/@matsos/expected-wins)

## Description

A simple javascript library based on a formula developed by baseball statistician Bill James. It attempts to determine the number of games a team should have won, by comparing the total number of runs a team has scored to the number of runs it has allowed.

## The rationale

The record of a baseball team can be expressed in a percentage. (ie: 5 wins and 5 losses would give a winning percentage of .500). This is a simple statistic however, and doesn't take into account how well a team is really playing. A team could be getting heavily outscored by their opponents, but still have a decent record because of good luck or poor officiating.

The idea behind expected-wins (the statistic) is that if you score more runs (consistently) than your opponent, your win/loss record should reflect that accordingly. And when you compare the teams actual winning percentage to your expected wins, you can better gauge the quality of team itself (not other factors contributing to the outcome).

## Install

```
$ npm install @matsos/expected-wins
```

## Usage

```js
const exp = require("@matsos/expected-wins");
const runsScored = 207;
const runsAllowed = 556;
const winningPercentage = exp(runsScored, runsAllowed);
console.log(winningPercentage);
//=> 0.122
```

## Unit Tests

A simple set of mocha unit tests can be run by using the following command:

```
npm test
```
npm package: @matsugov/f2s3
Description: A NodeJS script that transfers files from local file system to an external file system
Author: Freedom Evenden
Latest version: 1.1.0

# f2s3

This script uploads files from a local filesystem to AWS S3.

## Getting started

Make sure you have [NodeJS](https://nodejs.org/en) installed. You will also need to make sure you have the correct credentials to write objects to the target S3 bucke. For more information see [SDK authentication with AWS](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html)

### Installation

#### Install from NPM (Easiest method)

```sh
npm i -g @matsugov/f2s3
```

#### Installing from Local Instance

1. Clone this Repository

```sh
git clone git@github.com:akmatsu/folder-to-s3.git && cd ./folder-to-s3
```

2. Install dependencies

```sh
npm i
```

3. Run Build

```sh
npm run build
```

4. Install globally from local instance using npm

```
npm i -g .
```

### Usage

Run this in your terminal to see a list of available options.

```
f2s3 --help
```

#### Example

```
f2s3 -l /path/to/directory -b your-bucket-name -r us-west-1
```