open-index/open-npm huggingface dataset:
npm package: @namchee/astro-subfont
Description: Generate optimal font subsets for your Astro-powered websites
Author: Cristopher
Latest version: 0.1.0

# Astro Fontsubs

Astro integration of [`subfont`](https://github.com/Munter/subfont) library. Generate optimized font subset for your Astro site.

## Prerequisites

1. Astro 4.x

## Installation

You can install this package through `astro add`

```bash
# Using pnpm
pnpm astro add @namchee/astro-subfont

# Using npm
npx astro add @namchee/astro-subfont

# Using yarn
yarn astro add @namchee/astro-subfont

# Using bun
bunx astro add @namchee/astro-subfont
```

Additionaly, you can also install this package manually

```bash
# Using pnpm
pnpm install -D @namchee/astro-subfont

# Using npm
npm install -D @namchee/astro-subfont

# Using yarn
yarn add -D @namchee/astro-subfont

# Using bun
bun add -D @namchee/astro-subfont
```

After installation, you can integrate this integration in your Astro config

```js
import { defineConfig } from 'astro/config';

import { subset } from '@namchee/astro-subfont';

export default defineConfig({
  integrations: [
    subset(),
  ]
})
```

## Configuration

This integration can be configured by passing a configuration object with the following properties:

| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| `whitelist` | `string` | `''` | Additional characters to be included in font subsets. Use this option if you find some characters are missing after subset. |
| `optimizeVariableFonts` | `boolean` | `true` | Allow optimization of [variable font](https://fonts.google.com/knowledge/introducing_type/introducing_variable_fonts) features, such as weights and axes. Experimental. |
| `inline` | `boolean` | `false` | Inline the optimized fonts directly in the `@font-face` declaration. |
| `dynamic` | `boolean` | `false` | Analyze webfonts usage dynamically by running headless browsers. |
| `debug` | `boolean` | `false` | Enable verbose output to `stdout`. |

## Acknowledgements

All credits goes to [Munter](https://github.com/Munter) for the awesome [subfont](https://github.com/Munter/subfont) library.
npm package: @namchee/biome-config
Description: General purpose BiomeJS configuration file by Namchee
Author: Cristopher Namchee
Latest version: 1.1.0

# @namchee/biome-config

Shareable configuration BiomeJS config for personal use. Definitely opinionated and under development.

## Installation

```bash
# Using npm
npm install -D @namchee/biome-config

# Using yarn
yarn add -D @namchee/biome-config

# Using pnpm
pnpm install -D @namchee/biome-config

# Using bun
bun install -D @namchee/biome-config
```

## Usage

You can extend your BiomeJS config using `extends` keyword.

```jsonc
{
    "$schema": "https://biomejs.dev/schemas/<version>/schema.json",
    "extends": ["./node_modules/@namchee/biome-config/biome.json"] // the configuration resolution doesn't work correctly in VSCode extension yet
}
```

## Compatibility

- **Use for**: JavaScript, TypeScript, React.
- **Do not use for**: HTML superlanguage projects such as Vue, Svelte, and Astro. Use [`@namchee/eslint-config`](https://github.com/Namchee/eslint-config-namchee) instead.

> [!IMPORTANT]
> Biome currently only support frontmatters and script tags when parsing HTML superlanguage files, which makes it possible to cause false alarm.

## License

This project is licensed under the [MIT License](./LICENSE)
npm package: @namchee/bun-plugin-strip-debug
Description: A Bun plugin that strips `console.*` and `debugger` statements from your `Bun.build` output.
Author: Cristopher
Latest version: 1.0.4

# @namchee/bun-plugin-strip-debug

A Bun plugin that strips `console.*` and `debugger` statements from your `Bun.build` output.

## Example

Given the following code:

```ts
console.log('Hello World!');

function add(a: number, b: number): number {
    debugger;
    return a + b;
}

console['table']({ foo: 'bar' });
```

This transformer will transform your code to the following code:

```ts
function add(a: number, b: number): number {
    return a + b;
}
```

## Installation

```bash
# Using npm
npm install -D @namchee/bun-plugin-strip-debug

# Using yarn
yarn add -D @namchee/bun-plugin-strip-debug

# Using pnpm
pnpm install -D @namchee/bun-plugin-strip-debug

# Using bun
bun install -D @namchee/bun-plugin-strip-debug
```

## Usage

```ts
import { stripDebug } from '@namchee/bun-plugin-strip-debug';

Bun.build({
  entrypoints: ['<your_entrypoint>'],
  outdir: '<your_outdir>',
  plugins: [stripDebug()],
});

```

See [sample](./sample/build.ts) for complete example.

## Options

| Name           | Type       | Default                                                                           | Description                                                                                |
| -------------- | ---------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `files`        | `RegExp`   | All JS and TS files in the project directory, including the e**X**tended variants | List of files to be processed by the plugin                                                |
| `exclude`      | `string[]` | `[]`                                                                              | List of console methods to ignore when stripping console statements.                       |
| `debugger`     | `boolean`  | `true`                                                                            | Allows the plugin to strip debugger statements.                                            |
| `tsconfigPath` | `string`   | `process.cwd()/tsconfig.json`, if not found will use `{ target: "es2015" }`       | Path to TypeScript configuration file. Will be used for code traversal and transformation. |

## License

This project is licensed under the [MIT License](./LICENSE)
npm package: @namchee/favify
Description: Easily fetch all favicons from a webpage
Author: Cristopher
Latest version: 0.2.0

# Favify

[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) ![devDependecies](https://img.shields.io/david/dev/namchee/favify) ![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/namchee/favify)

Simple library to fetch all favicons from a webpage.

> While this library is usable in the browser environment, the library won't bypass the CORS policy.

## Features

1. 💡 Very simple API
2. ✨ Supports modern favicon features
3. 🗺️ Works both in browser and Node
4. 🌐 Parses with Web Manifests
5. 🛂 Written in TypeScript
6. 📦 Very compact, 1kB-ish gzipped

## Installation

You can install `favify` with any NodeJS package managers. Below is the example of installing `favify` with `npm`

```bash
npm install @namchee/favify
```

> Note: [favify](https://www.npmjs.com/package/favify) is an old-and-unmaintained version of the library. For the latest version, always use `@namchee/favify`
## API

### fetchFavicons

Fetches all favicons from the provided `url`.

**Parameters**

`url` (_required_)

Web page source for searching favicons

`config`

List of request headers to be used when fetching contents. Useful if the target web page has crawler protection.

`config['User-Agent']`

Value of `User-Agent` header to be used when fetching data.

For example, to mimic normal browser behavior, you can use [your browser `User-Agent` value](https://www.whatismybrowser.com/detect/what-is-my-user-agent)

`config['Referrer']`

Value of `Referrer` header to be used when fetching data.

For example, `https://www.google.com` is a good start, since it basically transform your request as it has been searched via Google.

## License

This project is licensed under the [MIT license](./LICENSE)
npm package: @namchee/j2v
Description: Jest to Vitest CLI migration tool
Author: Cristopher Namchee
Latest version: 0.1.5

# j2v

[![Checked with Biome](https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev)

All-in-one Jest to Vitest migration tool.

![j2v Demo Run](./demo/demo.gif)

## Features

- JavaScript / TypeScript compatible
- Automatically generates Vitest configuration that mimics your Jest configuration as close as possible
- Setup file generation for automated code cleanups
- Automatic Jest dependency cleanup

## Usage

```bash
## If you prefer using it without explicit installation:
# Using npm
npx @namchee/j2v

# Using pnpm
pnpx @namchee/j2v

# Using bun
bunx @namchee/j2v

## Or... install the package
# Using npm
npm install -D @namchee/j2v

# Using yarn
yarn add -D @namchee/j2v

# Using pnpm
pnpm install -D @namchee/j2v

# Using bun
bun add -D @namchee/j2v
```

## Commands

```bash
> ./dist/main.js --help
j2v/<version>

Usage:
  $ j2v [dirname]

Commands:
  [dirname]  Working directory of the project (Default: `process.cwd()`)

For more info, run any command with the `--help` flag:
  $ j2v --help

Options:
  --globals      Enable Vitest global API to your test files (default: false)
  -d, --debug    Show debugging output (default: false)
  --dry-run      Perform a dry-run of the CLI (default: false)
  -h, --help     Display this message
  -v, --version  Display version number
```

## Compatibility

Not all of Jest APIs and quirks will be replaced by this utility, as some of them don't have any equivalent property in Vitest.

For the list of all compatible APIs, please see the [compatibility list](https://github.com/Namchee/j2v/blob/master/COMPATIBILITY.md)

## Notes

1. Jest configuration will be evaluated during conversion. Expect some derivative values (from variables, functions, etc) to be transformed into raw values.
2. Code style for transformed such as dangling commas, brace spacing on destructured objects, and semicolons might not follow the original style of the code.
3. Setup file written in CommonJS will break the test

## Acknowledgments

1. This project would not exist without the existence of this [Jest migration to Vitest gist](https://gist.github.com/wojtekmaj/6defa1f358daae28bd52b7b6dbeb7ab6)
2. [vitest-codemod](https://github.com/trivikr/vitest-codemod) as further inspiration on how should the CLI behave

## License

This project is licensed under the [MIT License](./LICENSE)