open-index/open-npm huggingface dataset:
npm package: @pkcarreno/create-astro-minimal
Description: CLI to deploy new projects based on astro-minimal-template
Author: Pedro Carreno
Latest version: 1.2.1

# create-astro-minimal

A CLI tool to scaffold minimal projects based on the
[astro-minimal-template](https://github.com/pkcarreno/astro-minimal-template).

## usage

```bash
pnpm dlx @pkcarreno/create-astro-minimal@latest <project-name>
```
npm package: @pkemp/dirtraverse
Description: Recursive traversal of directory structure with a callback function
Latest version: 1.0.12

# Dirtraverse

Traverse directory and call a callback with each file/folder. If callback return true for a folder, it's content will be skipped.

## Example
```js
const dirtraverse = require('@pkemp/dirtraverse');

dirtraverse.traverse('.', (err, filepath, stats) => {
  console.log('Callback called with path: ', filepath);
  return stats.isDirectory() && path.basename(filepath) === '.git'	// return true if you want to skip traversal of a subfolder
});
```

See [API docs](https://pkemp.github.io/dirtraverse/) for more information.

## Thanks
 - [Typescript Starter](https://github.com/bitjson/typescript-starter) by Jason Dreyzehner
npm package: @pkerschbaum/code-oss-file-service
Description: VS Code ([microsoft/vscode](https://github.com/microsoft/vscode)) includes a rich "`FileService`" and "`DiskFileSystemProvider`" abstraction built on top of Node.js core modules (`fs`, `path`) and Electron's `shell` module. This package allows to use that
Author: Patrick Kerschbaum
Latest version: 1.65.1

# @pkerschbaum/code-oss-file-service

VS Code ([microsoft/vscode](https://github.com/microsoft/vscode)) includes a rich "`FileService`" and "`DiskFileSystemProvider`" abstraction built on top of Node.js core modules (`fs`, `path`) and Electron's `shell` module.
This package allows to use that abstraction as a standalone module for other projects. It is a fork of [microsoft/vscode](https://github.com/microsoft/vscode), reduced to all code parts related to `FileService` and `DiskFileSystemProvider`. The compiled output is ES6 compliant with source maps, declarations, and declaration maps included.

The following changes were made to the code:

1. Minor changes in order to allow standalone usage (e.g., there was a dependency on the `product.json` file of [microsoft/vscode](https://github.com/microsoft/vscode), this code parts were removed).
2. Deleting directories recursively via the `DiskFileSystemProvider` does not use the fast variant that first moves the target to a temporary directory and then deletes it in the background, since this introduces problems with some devices on windows, e.g. external drives and network drives. See also this commit: [pkerschbaum/vscode/commit/e84f81c49f90cfebfdb0078d83b2695a2744c7c8](https://github.com/pkerschbaum/vscode/commit/e84f81c49f90cfebfdb0078d83b2695a2744c7c8).

See [this link](https://github.com/microsoft/vscode/compare/b2498a1a912811a78c68a5a03f2f0c2ad6ffe42a...pkerschbaum:code-oss-file-service) for all changes made to the VS Code source code.

Credits go to [microsoft/vscode](https://github.com/microsoft/vscode) for their awesome work!

## Usage

```typescript
import { Schemas } from "@pkerschbaum/code-oss-file-service/out/vs/base/common/network";
import {
  ConsoleMainLogger,
  LogService,
} from "@pkerschbaum/code-oss-file-service/out/vs/platform/log/common/log";
import { FileService } from "@pkerschbaum/code-oss-file-service/out/vs/platform/files/common/fileService";
import { DiskFileSystemProvider } from "@pkerschbaum/code-oss-file-service/out/vs/platform/files/node/diskFileSystemProvider";

const logger = new ConsoleMainLogger();
const logService = new LogService(logger);
const fileService = new FileService(logService);
const diskFileSystemProvider = new DiskFileSystemProvider(logService);
fileService.registerProvider(Schemas.file, diskFileSystemProvider);

// fileService is ready for use here
```
npm package: @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths
Description: Codemod to rewrite module specifiers of TypeScript files to their full paths.
Author: Patrick Kerschbaum
Latest version: 1.0.1
Deprecated: was moved to https://www.npmjs.com/package/@patricktree/codemod-rewrite-module-specifiers-to-full-paths

# `@pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths`

Codemod to rewrite module specifiers of TypeScript files to their full paths.

## Problem

Module specifiers for relative, absolute, and "subpath" (=path alias) imports in Node.js ESM need to be "exact".  
This is in contrast to Node.js CJS modules, which applied a "searching" algorithm when loading modules (see also <https://nodejs.org/api/modules.html#file-modules>).

For example, while the following `require` function calls were working in Node.js CJS modules, they are not working anymore in ESM modules:

```js
/* assuming ./some-directory/index.js is present */
require('./some-directory');
require('./some-directory/index');
```

Therefore, migrating CJS code to ESM code involves rewriting every module specifier to its full path.  
Doing this by hand is tedious and error-prone.

## Solution

This package is a codemod which consumes a TypeScript configuration file and rewrites all relative, absolute, and path alias imports to their full paths.

## How to use

```bash
npx @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths --help

# Usage: codemod [options]

# Options:
#   --project <path-to-tsconfig-json>  Path to the TypeScript configuration file (e.g. "./tsconfig.json").
#   --basepath <path>                  A root directory to resolve relative path entries in the TypeScript config file to (e.g. option "outDir"). If omitted, the directory of the
#                                      TypeScript configuration file passed with "--project" is used.
#   -h, --help                         display help for command

# for example
npx @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths --project=./path/to/tsconfig.json
```
npm package: @pkerschbaum/cypress-image-snapshot
Description: Cypress bindings for jest-image-snapshot.
Author: Patrick Kerschbaum
Latest version: 1.0.1

# @pkerschbaum/cypress-image-snapshot

This is a fork of [jaredpalmer/cypress-image-snapshot](https://github.com/jaredpalmer/cypress-image-snapshot) with following changes applied:

- The project was re-written with TypeScript (no `@types/cypress-image-snapshot` necessary anymore).
- Snapshots are now stored **next** to the Cypress spec file in the folder `__cy_image_snapshots__`.  
  That's why the options `customSnapshotsDir` and `customDiffDir` were removed.

## Installation

Using npm:

```bash
npm install --save-dev @pkerschbaum/cypress-image-snapshot jest-image-snapshot
```

Using yarn:

```bash
yarn add --dev @pkerschbaum/cypress-image-snapshot jest-image-snapshot
```

then add the following in your project's `<rootDir>/cypress/plugins/index.js`:

```js
import { addMatchImageSnapshotPlugin } from '@pkerschbaum/cypress-image-snapshot/lib/plugin';

module.exports = (on, config) => {
  addMatchImageSnapshotPlugin(on, config);
};
```

and in `<rootDir>/cypress/support/commands.js` add:

```js
import { addMatchImageSnapshotCommand } from '@pkerschbaum/cypress-image-snapshot/lib/command';

addMatchImageSnapshotCommand();
```

## Syntax, Usage, ...

See [jaredpalmer/cypress-image-snapshot](https://github.com/jaredpalmer/cypress-image-snapshot).
npm package: @pkerschbaum/eslint-plugin-code-import-patterns
Description: Package was renamed to [`eslint-plugin-code-import-patterns`](https://www.npmjs.com/package/eslint-plugin-code-import-patterns).
Author: Patrick Kerschbaum
Latest version: 2.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@pkerschbaum/eslint-plugin-code-import-patterns`

Package was renamed to [`eslint-plugin-code-import-patterns`](https://www.npmjs.com/package/eslint-plugin-code-import-patterns).
npm package: @pkerschbaum/gulp-tsb
Description: A gulp plugin for very fast TypeScript compilation. Fork of "gulp-tsb" (of Johannes Rieken <johannes.rieken@gmail.com>).
Author: Patrick Kerschbaum
Latest version: 4.1.0

# gulp-tsb

Fork of [`jrieken/gulp-tsb`](https://github.com/jrieken/gulp-tsb):

- Reset `master` branch to `release/4.0` (previous `master` is available at `release/3.0`)
- Applied <https://github.com/jrieken/gulp-tsb/pull/56>
- Updated `typescript` to `^4.1.3` (to support new `jsx` related config options)

===============

[![Build Status](https://travis-ci.org/jrieken/gulp-tsb.svg?branch=master)](https://travis-ci.org/jrieken/gulp-tsb)

## Information

A gulp plugin for **very fast** TypeScript compilation. This plugin works by
* keeping a compiler alive to improve speed (at the cost of memory)
* always recompiling the smallest set of files possible

## Usage

```javascript

	var tsb = require('gulp-tsb');

	// create and keep compiler
	var compilation = tsb.create({
		target: 'es5',
		module: 'commonjs',
		declaration: false
	});

	gulp.task('build', function() {
		return gulp.src('src/**/*.ts')
			.pipe(compilation()) // <- new compilation
			.pipe(gulp.dest(''));
	});
```

## Options

The options are the same as the standard TypeScript compiler option.
npm package: @pkerschbaum/pkg-management
Description: ## Bins
Author: Patrick Kerschbaum
Latest version: 2.1.0
Deprecated: was moved to https://www.npmjs.com/package/@patricktree/pkg-management

# `@pkerschbaum/pkg-management`

## Bins

### Create a pnpm patch via `ts-patch`

Workaround for <https://github.com/pnpm/pnpm/issues/6111>:

```bash
pnpm --package=\"@pkerschbaum/pkg-management\" dlx create-pnpm-patch-via-ts-patch --typescript-version=5.1.6
```