open-index/open-npm huggingface dataset:
npm package: @onigoetz/intl-formatters
Description: This package provides simple implementations for Messageformat using the Intl API.
Latest version: 1.0.0-rc.2

This package provides simple implementations for Messageformat using the Intl API.

## Features

- **Numbers and currencies**: https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Intl/NumberFormat
- **Dates**: https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Intl/DateTimeFormat
- **Relative Time**: https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Intl/RelativeTimeFormat
- **Plurals**: https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Intl/PluralRules

## How to use

These formatters are best used in conjunction with `@onigoetz/messageformat`.
However they are fully Typed and you may use them for any other use.

```typescript
import { parse, createRenderer } from "@onigoetz/messageformat";
import {
  dateFormatter,
  numberFormatter,
  pluralGenerator,
} from "@onigoetz/intl-formatters";

// Parse the MessageFormat to a renderable format
const parsed = parse("{test, plural, offset:3 one{one test} other {# test} }");

// Create a localized renderer
const render = createRenderer(
  "en",
  (locale: T, type) => pluralGenerator(locale, { type }),
  (locale: T, options, value: number) =>
    numberFormatter(locale, options)(value),
  (locale: T, options, value: Date) => dateFormatter(locale, options)(value)
);

render(parsed, { test: 4 }); // => "one test"
render(parsed, { test: 7 }); // => "4 test"
```

### For NodeJS

If you do some generation using NodeJS and wish to use locales other than `en`.
I strongly suggest you look at the following page : https://nodejs.org/api/intl.html#intl_providing_icu_data_at_runtime
This page explains how to make sure you have all the right locales loaded to make your formatting.

## Browser Support

### Intl Base API (Dates, Numbers, Currencies, Relative Time)

[!['Can I use' table](https://caniuse.bitsofco.de/static/v1/mdn-javascript__builtins__Intl-1602274285145.jpg)](https://caniuse.com/mdn-javascript_builtins_intl)

## Plurals

[!['Can I use' table](https://caniuse.bitsofco.de/image/intl-pluralrules.png)](https://caniuse.com/intl-pluralrules)
npm package: @onigoetz/ntr-expect-snapshot
Description: Node.js Test Runner is great, Expect is great, Snapshots are great.
Author: Stéphane Goetz
Latest version: 0.4.0

# Node.js Test Runner - expect().toMatchSnapshot() integration

Node.js Test Runner is great, Expect is great, Snapshots are great.

But using them all together at the moment is ... not so great.

This package aims to provide an easy approach to use `.toMatchSnapshot` with Node.js Test Runner.

## Install

```
yarn add @onigoetz/ntr-expect-snapshot expect
```

## Usage

```javascript
import { test } from "node:test";

import initializeSnapshot from "@onigoetz/ntr-expect-snapshot";
import { expect } from "expect";

initializeSnapshot(import.meta.url);

test("a snapshot", async () => {
  const response = await fetch("http://example.com");
  const actual = await response.text();

  expect(actual).toMatchSnapshot();
});
```

### Updating snapshots

Updating snapshots is enabled if the --test-update-snapshots (Possible statring with Node.js 22.3.0) flag is passed
or the SNAPSHOT_UPDATE environment variable is set to "true"

## Shortcomings

Snapshot management is usually tightly integrated within the test runner to offer features such as partial updates when tests are skipped or removing snapshot files when they're no longer needed.

This package can't be integrated tightly with Node.js test runner and here are some things that will probably not be possible to implement:

__Remove a snapshot file if the test file is deleted__

We are only aware of the current running test files, not other test files so we don't know which other files are or are not present

__Remove a snapshot after a test is removed__

The fact that a snapshot isn't used in a test run can be due to the test being currently skipped, or tests being filtered.
For this reason we can't decide to remove all snapshots for a test at this stage.

## Credits / Previous work in the domain

The initial implementation is for most parts a fork of [AVA](https://www.npmjs.com/package/ava)'s implementation.

I also checked how other tools in the space work to build a coherent approach

- [snap-shot-core](https://www.npmjs.com/package/snap-shot-core)
- [@matteo.collina/snap](https://www.npmjs.com/package/@matteo.collina/snap)
- [jest-snapshot](https://www.npmjs.com/package/jest-snapshot)
npm package: @onigoetz/outdated-dependencies
Description: [![Latest version](https://img.shields.io/github/release/onigoetz/visualize-outdated-dependencies.svg?style=flat-square)](https://github.com/onigoetz/visualize-outdated-dependencies/releases) ![License](https://img.shields.io/github/license/onigoetz/visua
Latest version: 1.0.3

# Outdated dependencies visualizer

[![Latest version](https://img.shields.io/github/release/onigoetz/visualize-outdated-dependencies.svg?style=flat-square)](https://github.com/onigoetz/visualize-outdated-dependencies/releases)
![License](https://img.shields.io/github/license/onigoetz/visualize-outdated-dependencies?style=flat-square)
[![NPM Downloads](https://img.shields.io/npm/dm/@onigoetz/outdated-dependencies?style=flat-square&logo=npm)](https://www.npmjs.com/package/@onigoetz/outdated-dependencies)

![](screenshot.png)

Check the state of dependencies of your package and all of its dependencies.

Contrary to `yarn outdated` or `npm outdated`, this package will check the dependencies recursively and provide a full report.

This works with Yarn workspaces; run the command at the root of a workspace, and all its children will be included.

## Installing

```bash
npm install -g @onigoetz/outdated-dependencies
```

## Usage

Run the command within one of your modules.

```bash
outdated-dependencies
```

## Options

```
  --clear-cache Clear dependencies cache
  --help        Show help
  --version     Show the version and exit
  --verbose, -v Also display debug information
```