open-index/open-npm huggingface dataset:
npm package: @mkizka/eslint-config
Description: ESLint rules for mkizka
Latest version: 9.0.0

# @mkizka/eslint-config

ESLint rules for mkizka

```js
// eslint.config.js
import { mkizka } from "@mkizka/eslint-config";

export default mkizka

// or
import { defineConfig, globalIgnores } from "eslint/config";
import { mkizka } from "@mkizka/eslint-config";

export default defineConfig([
  globalIgnores([ ... ]),
  mkizka
];
```
npm package: @mkizka/eslint-plugin-aaa
Description: ESLint plugin for enforcing Arrange-Act-Assert pattern
Latest version: 1.0.2

# @mkizka/eslint-plugin-aaa

This ESLint plugin checks that `arrange`, `act`, and `assert` comments are present in test files.

```js
test("sample test", () => {
  // arrange
  setupSomething();
  // act
  const actual = testFunction();
  // assert
  expect(actual).toBe(expected);
});
```

## Installation

```
npm i -D @mkizka/eslint-plugin-aaa
```

## Example

```js
// eslint.config.js
import { arrangeActAssert } from "@mkizka/eslint-plugin-aaa";

export default [arrangeActAssert];
```

or

```js
// eslint.config.js
import { arrangeActAssertPlugin } from "@mkizka/eslint-plugin-aaa";

export default [
  {
    plugins: {
      aaa: arrangeActAssertPlugin,
    },
    rules: {
      "aaa/arrange-act-assert": "warn",
    },
  },
];
```
npm package: @mkizka/eslint-plugin-relative-import
Description: ESLint plugin to enforce relative imports
Latest version: 0.0.9

# @mkizka/eslint-plugin-relative-import

```js
import { foo } from "~/lib/utils";
// ↓
import { foo } from "../lib/utils";
```

## Installation

```
npm i -D @mkizka/eslint-plugin-relative-import
```

## Example

```js
// eslint.config.js
import { relativeImport } from "@mkizka/eslint-plugin-relative-import";

export default [relativeImport({ alias: { "~": "./src" } })];
```

or

```js
// eslint.config.js
import { relativeImportPlugin } from "@mkizka/eslint-plugin-relative-import";

export default [
  {
    plugins: {
      "@mkizka/relative-import": relativeImportPlugin,
    },
    rules: {
      "@mkizka/relative-import/no-path-alias": [
        "error",
        { alias: { "~": "./src" } },
      ],
    },
  },
];
```

or

```jsonc
// .eslintrc
{
  "plugins": ["@mkizka/relative-import"],
  "rules": {
    "@mkizka/relative-import/no-path-alias": [
      "error",
      { "alias": { "~": "./src" } },
    ],
  },
}
```
npm package: @mkizka/markdown-it-hatena
Description: markdown-it plugin to converts notation of HatenaBlog
Latest version: 1.2.0

# markdown-it-hatena

はてな記法を変換する Markdown-it プラグイン

## インストール

```
npm install @mkizka/markdown-it-hatena
```

## 対応状況

- `:embed`
- `:contents`
- `:cite`

## 実装について

- はてなブログの Markdown 記法で使えるもののみ変換する
- API を叩くなどの必要があるものは変換しない ... `:title`など
- 変換しない記法はそのまま出力する
npm package: @mkja/flip-motion
Description: Tiny FLIP animation utility (translate + optional scale) with Promise-based play and reduced-motion support.
Latest version: 0.1.1

# flip-motion

Tiny FLIP animation utility (translate + optional scale) with Promise-based `play` and reduced-motion support.

## Install

Install from npm:

```bash
npm install @mkja/flip-motion
```

## Usage

```js
import flip from '@mkja/flip-motion';

const elements = document.querySelectorAll('li');
const ctrl = flip(elements);

// Mutate DOM (reorder/insert/remove)
// ...

await ctrl.play({ duration: 300, easing: 'ease' }).finished;
```

## API

- `flip(elements)` → controller with:
  - `play(options)` → `{ animations: Animation[], finished: Promise<void>, cancel() }`
  - `measure()` → refresh internal measurements
  - `update([elements])` → rebind or just refresh measurements
  - `cancel()` → cancel in-flight animations
  - `disconnect()` → release references

### Options

- `duration` (ms, default 100)
- `easing` (default `ease`)
- `delay` (default 0)
- `stagger` (ms per index, default 0)
- `fill` (default `auto`)
- `direction` (default `normal`)
- `composite` (default `add`)
- `shouldScale` (default `true`)
- `respectReducedMotion` (default `true`)
- `transformOrigin` (default `"0 0"`)
- `epsilon` (px threshold to skip, default `0.5`)

## Development

- Dev demo: `npm run dev` (serves `test/index.html` with Vite)
- Tests: `npm test`
- Lint: `npm run lint`
- Format: `npm run format`

## Browser support

Uses WAAPI (`element.animate`). If unavailable, calls are no-ops. Honors `prefers-reduced-motion`.

## License

MIT
npm package: @mkl3/sdk
Description: <img src="public/merkle-large.png" width="80" height="80" style="border-radius: 4px"/>
Latest version: 1.0.32

<img src="public/merkle-large.png" width="80" height="80" style="border-radius: 4px"/>

**merkle is building crypto infrastructure**. [Join us on discord](https://discord.gg/Q9Dc7jVX6c).

# merkle SDK

The merkle SDK is a great way to access our products.

## Install

Install the merkle SDK package:

```
yarn add @mkl3/sdk
```

## Features

### Stream auctions

Stream auctions from merkle's private pool. [Learn more](https://docs.merkle.io/private-pool/what-is-merkle-private-pool)

```typescript
import Merkle from "@mkl3/sdk";

const merkle = new Merkle("<API KEY>"); // optional, get one at mbs.merkle.io

// stream auctions and make bids
merkle.pool.auctions().on("auction", (auction) => {
  console.log("new auction: ", auction);

  // construct a backrun
  const backrun = "0x....";

  // make a bid
  merkle.pool.bid(auction.transaction.hash, backrun);
});

// send new transactions for auctions
merkle.pool.send(tx, {
  // a signed ethers.Transaction
  // optional parameters
  feeRecipient: "0x", // where to receive the bid revenue, defaults to the tx.from
  hints: [], // what hints to provide to searchers, see https://docs.merkle.io/private-pool/privacy
});
```

### Stream public mempool transactions

Stream public mempool transactions from merkle's ultra fast network on Ethereum, Polygon and BSC. [Learn more](https://docs.merkle.io/transaction-stream/what-is-merkle-transaction-stream)

Typescript:

```typescript
import Merkle from "@mkl3/sdk";

const merkle = new Merkle("<API KEY>"); // get one at mbs.merkle.io

// stream ethereum transactions
merkle.transactions.stream().on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});

// stream polygon transactions
merkle.transactions.stream(137).on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});

// stream bnb transactions
merkle.transactions.stream(56).on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});
```

Javascript:

```javascript
const Merkle = require("@mkl3/sdk");

const merkle = new Merkle("<API KEY>"); //get one at mbs.merkle.io

// stream ethereum transactions
merkle.transactions.stream().on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});

// stream polygon transactions
merkle.transactions.stream(137).on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});

// stream bnb transactions
merkle.transactions.stream(56).on("transaction", (tx) => {
  console.log("tx from: ", tx.from);
});
```

### Transaction tracing

Know exactly when and where a transaction was broadcasted. [Learn more](https://docs.merkle.io/transaction-network/tracing)

```typescript
import Merkle from "@mkl3/sdk";

const merkle = new Merkle("<API KEY>"); //get one at mbs.merkle.io

// trace a transaction with its hash
merkle.transactions.trace("0x...").then((trace) => {
  console.log("trace: ", trace);
});
```
npm package: @mklabs/discord-li
Description: Routing framework for discord bots
Author: Mickael Daniel
Latest version: 1.0.0

# discord-li

Little routing framework for discord bots

---

## Usage

**Install**

    npm install @mklabs/discord-li

**Usage**

```js
// Load up the discord.js library
const Discord = require('discord.js');
const path    = require('path');

// Here we load the config.json file that contains our token and our prefix values.
// config.token contains the bot's token
// config.prefix contains the message prefix.
const config  = require('./config.json');

// This is your Discord client
const client = new Discord.Client();

// This is your router, it needs a client a config file (see gist) and an
// additional path to store your commands.
const router = require('discord-li')(client, config, path.join(__dirname, 'commands'));

client.on('ready', () => {
  console.log(`Bot has started, with ${client.users.size} users, in ${client.channels.size} channels of ${client.guilds.size} guilds.`);
  // Example of changing the bot's playing game to something useful. `client.user` is what the
  // docs refer to as the 'ClientUser'.
  client.user.setActivity(`Serving ${client.guilds.size} servers`);
});

client.on('guildCreate', guild => {
  // This event triggers when the bot joins a guild.
  console.log(`New guild joined: ${guild.name} (id: ${guild.id}). This guild has ${guild.memberCount} members!`);
  client.user.setActivity(`Serving ${client.guilds.size} servers`);
});

client.on('guildDelete', guild => {
  // this event triggers when the bot is removed from a guild.
  console.log(`I have been removed from: ${guild.name} (id: ${guild.id})`);
  client.user.setActivity(`Serving ${client.guilds.size} servers`);
});

client.on('message', router);
```

Then each command can live in its own file in `lib/commands` for instance, or
wherever you like (third argument when creating the router).

```js
// In lib/commands/ping.js
module.exports = async (client, message, command, args) => {
  // Calculates ping between sending a message and editing it, giving a nice round-trip latency.
  // The second ping is an average latency between the bot and the websocket server (one-way, not round-trip)
  const m = await message.channel.send('Ping?');
  m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ping)}ms`);
};
```

Each command function should take `(client, message, command, args) => {}`

Where:

- `client` is the discord client
- `message` is the original message
- `command` is the actual command (ex: ping)
- `args` are every arguments after the command as an array

## Thanks

- **[@eslachance](https://github.com/eslachance)** for [The Perfect Lil'
  Bot](https://gist.github.com/eslachance/3349734a98d30011bb202f47342601d3).
  Awesome starting point.

I strongly recommend to check above gist to see all the comments and examples
in setting up your own little bot.

---

                                            \o/
npm package: @mklabs/gatsby-theme-docs
Description: Out of the box Gatsby Theme for creating documentation websites easily and quickly.
Author: João Pedro Schmitz
Latest version: 2.3.3

<p align="center">
  <img src="https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/theme-docs.svg" alt="A illustration of file that is the @rocketseat/gatsby-theme-docs logo" width="100">
</p>

<h2 align="center">
  @rocketseat/gatsby-theme-docs
</h2>

<p align="center">
  Out of the box Gatsby Theme for creating documentation websites easily and quickly.
</p>

<p align="center">
  <img src="https://img.shields.io/badge/PRs-welcome-%238257E6.svg" alt="PRs welcome!" />

  <img alt="License" src="https://img.shields.io/badge/license-MIT-%238257E6">

  <a href="https://twitter.com/intent/follow?screen_name=rocketseat">
    <img src="https://img.shields.io/twitter/follow/rocketseat.svg?label=Follow%20@rocketseat" alt="Follow @rocketseat" />
  </a>
</p>

<p align="center">
  <a href="#-features">Features</a> •
  <a href="#-getting-started">Getting started</a> •
  <a href="#-docs">Docs</a> •
  <a href="#-contributing">Contributing</a> •
  <a href="#-license">License</a>
</p>

## 🚀 Features

- 📝 MDX for docs;
- 🛣 Yaml-based sidebar navigation;
- 📱 Responsive and mobile friendly;
- 🖥 Code highlighting with [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) and [react-live](https://github.com/FormidableLabs/react-live) support;
- 🥇 SEO (Sitemap, schema.org data, Open Graph and Twitter tags).
- 📈 Google Analytics support;
- 📄 Custom docs schema;
- 🖱 Table of Contents;
- ⚡️ Offline Support & WebApp Manifest;
- and much more 🔥

## ⚡️ Getting started

1. Create the website.

   ```sh
   npx gatsby new rocket-docs https://github.com/rocketseat/gatsby-starter-rocket-docs
   ```

2. Start developing.

   ```sh
   cd rocket-docs
   gatsby develop
   ```

3. Are you ready for launch? 🚀

   Your site is now running at `http://localhost:8000`

## 📄 Docs

Looking for docs? Check our live demo and documentation [website](https://rocketdocs.netlify.app).

## ✨ Contributing

Thanks for being interested in contributing! We’re so glad you want to help! Please take a little bit of your time and look at our [contributing guidelines](https://github.com/Rocketseat/gatsby-themes/blob/main/.github/CONTRIBUTING.md) and our
[code of conduct](https://github.com/Rocketseat/gatsby-themes/blob/main/.github/CODE_OF_CONDUCT.md)! All type of contributions are welcome, such as bug fixes, issues or feature requests.

## 🗺 Changelog

All notable changes to this project will be documented on the [CHANGELOG](https://github.com/Rocketseat/gatsby-themes/blob/main/%40rocketseat/gatsby-theme-docs/CHANGELOG.md) file.

## 📝 License

Licensed under the [MIT License](https://github.com/Rocketseat/gatsby-themes/blob/main/%40rocketseat/gatsby-theme-docs/LICENSE).

---

Made with 💜 by Rocketseat :wave: [check our community!](https://discordapp.com/invite/gCRAFhc)