open-index/open-npm huggingface dataset:
npm package: @pearnaly/semantic-version
Description: Javascript/Typescript class to represent, parse and compare semantic versions according to semver.org
Author: Paul-Émile Arnaly
Latest version: 1.0.8

# semantic-version
[![CI](https://github.com/pearnaly/semantic-version/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/pearnaly/semantic-version/actions/workflows/ci.yml)
[![npm version](https://badge.fury.io/js/%40pearnaly%2Fsemantic-version.svg)](https://badge.fury.io/js/%40pearnaly%2Fsemantic-version)

Javascript/Typescript class to represent, parse and compare semantic versions 2.0.0 according to [semver.org](https://semver.org)

## Installation
### NPM
```
npm install @pearnaly/semantic-version
```
### Bundles
https://unpkg.com/browse/@pearnaly/semantic-version/bundles/

## Use
### Object Oriented
```typescript
const fullVersion = new SemVersion('1.2.3-beta.1a+build2');
fullVersion.major // 1
fullVersion.minor // 2
fullVersion.patch // 3
fullVersion.preReleaseIdentifiers // ['beta', '1a']
fullVersion.buildMetadataIdentifiers // ['build2']

const myVersion = new SemVersion('1.2.3');

// comparaison: returns -1 / 0 / 1 according to order
myVersion.compare('1.3.0'); // returns -1

//comparaison:  operators eq, gt, ge, lt, le
myVersion.eq('1.2.3'); // returns true
myVersion.lt('1.3.0'); // returns true
```

### Functional
```typescript
// comparaison
SemVersion.compare('1.2.3', '1.3.0'); // returns -1

// comparaison: operators eq, gt, ge, lt, le
SemVersion.eq('1.2.3', '1.2.3'); // returns true
SemVersion.lt('1.2.3', '1.3.0'); // returns true
```
npm package: @pearofducks/fastify-sandbox-fork
Description: Load Fastify plugins in a sandbox
Author: Matteo Collina
Latest version: 0.12.2

# fastify-sandbox

Loads a fastify plugin in a sandbox.
It will have a different require.cache, so loaded modules
could be safely gc'ed once the sandbox goes out of scope.

The plugin can be both commonjs or esm.

This modules pairs well with [`@fastify/restartable`](https://github.com/fastify/restartable)
to provide hot-reloading mechanism for Fastify applications.

## Install

```bash
npm i fastify-sandbox
```

## Usage

```js
'use strict'

const Fastify = require('fastify')
const sandbox = require('fastify-sandbox')

const app = Fastify()

app.addHook('onRequest', async function (req) {
  req.p = Promise.resolve('hello')
  console.log('promise constructor is the same', Object.getPrototypeOf(req.p).constructor === Promise)
})

app.register(sandbox, {
  path: __dirname + '/plugin.js',
  options: { // this object will be passed as the options of the loaded plugin
    hello: "world"
  },
  onError (err) {
    // uncaught exceptions within the sandbox will land inside this
    // callback
  }
})

app.listen(3000)
```

Inside `plugin.js`:

```js
'use strict'

// We are in a different V8 Context now
const sleep = require('timers/promises').setTimeout

module.exports = async function (app) {
  app.get('/', async (req, res) => {
    console.log('promise constructor is different', Object.getPrototypeOf(req.p).constructor === Promise)
    return 'Hello World!'
  })
}
```

## Missing compiler support

In case there is no compiler toolchain available in the system,
compiling the code needed to support for the current Node.js version would
be impossible. In this case we rely on [import-fresh](https://npm.im/import-fresh)
instead.

It's also possible to turn on the fallback mechanism with the `fallback: true` option:

```js
'use strict'

const Fastify = require('fastify')
const sandbox = require('fastify-sandbox')

const app = Fastify()

app.addHook('onRequest', async function (req) {
  req.p = Promise.resolve('hello')
  console.log('promise constructor is the same', Object.getPrototypeOf(req.p).constructor === Promise)
})

app.register(sandbox, {
  path: __dirname + '/plugin.js',
  fallback: true
})

app.listen(3000)
```

Note that ESM is only supported via the native code.

## Caveats

This module does not offer any protection against malicious code.

## License

MIT
npm package: @pearofducks/nanostores-lit
Description: Lit integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores
Author: Emil Bonne Kristiansen
Latest version: 0.2.10

# Nano Stores Lit

<img align="right" width="92" height="92" title="Nano Stores logo"
     src="https://nanostores.github.io/nanostores/logo.svg">

[Lit](https://lit.dev/) integration for **[Nano Stores]**, a tiny state manager
with many atomic tree-shakable stores.

- **Small.** Less than 1 KB. Zero dependencies.
- **Fast.** With small atomic and derived stores, you do not need to call
  the selector function for all components on every store change.
- **Tree Shakable.** The chunk contains only stores used by components
  in the chunk.
- Was designed to move logic from components to stores.
- It has good **TypeScript** support.

## Quick start

Install it:

```bash
npm add nanostores @nanostores/lit # or yarn
```

Use it as a decorator with `@useStores`:

```ts
import { LitElement, html } from "lit";
import { customElement } from "lit/decorators.js";
import { useStores } from "@nanostores/lit";

import { profile } from "./stores/profile.js";

@customElement("my-header")
@useStores(profile)
class MyHeader extends LitElement {
  render() {
    return html`<header>${profile.get().userId}</header>`;
  }
}
```

Or as a mixin with `withStores`:

```ts
import { LitElement, html } from "lit";
import { customElement } from "lit/decorators.js";
import { withStores } from "@nanostores/lit";

import { profile } from "./stores/profile.js";

@customElement("my-header")
class MyHeader extends withStores(LitElement, [profile]) {
  render() {
    return html`<header>${profile.get().userId}</header>`;
  }
}
```

Or as a Reactive Controller with `StoreController`:

```ts
import { LitElement, html } from "lit";
import { customElement } from "lit/decorators.js";
import { StoreController } from "@nanostores/lit";

import { profile } from "./stores/profile.js";

@customElement("my-header")
class MyHeader extends LitElement {
  private profileController = new StoreController(this, profile);
  render() {
    return html`<header>${this.profileController.value.userId}</header>`;
  }
}
```

[Nano Stores]: https://github.com/nanostores/nanostores/
npm package: @pearofducks/unocss-vite
Description: The Vite plugin for UnoCSS
Author: Anthony Fu
Latest version: 0.61.11

# @unocss/vite

The Vite plugin for UnoCSS. Ships with the `unocss` package.

## Documentation

Please refer to the [documentation](https://unocss.dev/integrations/vite).

## License

MIT License &copy; 2021-PRESENT [Anthony Fu](https://github.com/antfu)