open-index/open-npm huggingface dataset:
npm package: @ricmello/ngx-prettier
Description: Another Angular schematic for adding prettier
Author: Ricardo Mello
Latest version: 0.1.0

# Getting Started With Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with
```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```

That's it!
npm package: @ricmello/prettier
Description: Another Angular schematic for adding prettier
Author: Ricardo Mello
Latest version: 0.2.1

# Prettier Schematic

This schematic will add Prettier, Husky and lint-staged to your Angular project, and configure a pre-commit hook that will format your project files.

[![npm (scoped)](https://img.shields.io/npm/v/@ricmello/prettier.svg)](https://www.npmjs.com/package/@ricmello/prettier)

## Usage 🚀

```shell
ng add @ricmello/prettier
```

- install [Prettier](https://prettier.io), [Husky](https://typicode.github.io/husky/) and [lint-staged](https://github.com/okonet/lint-staged)
- creates a pre-commit hook that format the staged files


### Optionally: install globally

```shell
npm install -g @ricmello/prettier
```

Then in an Angular CLI project run

```shell
ng g @ricmello/prettier:add
```


![install-prettier-schematic](docs/install-prettier-schematic.gif)
npm package: @ricmoo/cli
Description: CLI parsing utility functions.
Author: Richard Moore
Latest version: 0.0.2

RicMoo's CLI Utilities
======================

A very simple Command-Line Interface (CLI) library for parsing
Argument Value.

An Argument Value must be:

- an option with a value (e.g. `--my-option VALUE`)
- a flag (e.g. `--quiet`)
- an argument

All Argument Values following a lone `--` are consumed as Arguments and
no further option or flag parsing is performed. This permits arguments
which have a `--` prefix.


API
---

```javascript
import { Options } from "@ricmoo/cli";

const defn = {
  verbose: Options.boolean,
  "file-type": Options.string
};

// foobar --file-type plain/txt --verbose filename.txt
const options = Options.cli(defn);
//  options.program => "foobar"
//  options.getString("file-type") => "plain/text"
//  options.getBoolean("verbose") => true
//  options.args => [ "filename.txt" ]
```


License
-------

MIT License.
npm package: @ricmoo/gas-ticker
Description: Oracle for tracking effective gas prices.
Author: Richard Moore
Latest version: 0.0.1

Gas Ticker
==========

A very simple oracle to track gas prices.

How it works
------------

A WebSocketProvider is used to subscribe to the `"pending"` filter
and the `"block"` filter.

On each pending transaction hash, its *"time seen"* added to a database.

On each `"block"`, each transaction in that block has its delta time
computed from the time the transaction was seen to the time it was mined.

The last 100 blocks are then analysed and statistics ensue.

Any blocks or transactions not mined within 2 days are purged to constrain
the database size.

How to use it
-------------

```
/home/ricmoo/gas-ticker> npm start
```

The result will be dumped to `database/gas-price.json`.

The node scripts are executed inside a shell script which will
automatically restart the node process and the server is deisgned
to exit if it detects more than 10s of inactivity.


To Do
-----

- CLI option to adjusting the statistic properties (like block count)
- CLI options to change the database location


License
-------

The MIT License.
npm package: @ricmoo/solidity
Description: Solidity utility functions.
Author: Richard Moore
Latest version: 0.0.1

RicMoo's Solidity Utilities
===========================

A much simpler interface to the Solidity WASM compiler.


API
---

```javascript
import { compile } from "@ricmoo/solidity";

```


Building
--------

The build process (internally) is a bit complex, so a few quick notes
on the files.

The `src.ts/solc.ts` is not directly imported from the final library, it is
used internally by Rollup to generate the `lib.*/_solc.js` which has its
type definitions provided in `src.ts/_solc.d.ts`.

This allows the entire Solidity compiler to be bundled up without any of its
CLI-only dependencies, which for non-CLI purposes drastically reduces the
number of complex and frequently-targetted dependencies.

With a custom WASM wrapper this couold be much further reduced, but the
goal is to ensure updating the underlying `soljson` is as simple and
straight-forward as possible.


License
-------

MIT License.
npm package: @ricmoo/wasm
Description: WASM utility functions.
Author: Richard Moore
Latest version: 0.0.1

RicMoo's WASM Utilities
=======================

A simple WASM container parser and WASM expression parser.

The allows reading the WASM container and parsing the code within into
its opcode and immediates, including byte ranges of each op.


> **Note**
> 
> The original purpose of this library was to experiment with various
> techniques for compressing WASM.
> 
> The original idea was to deflate the opcodes and immediates seaparately
> and recombine them after re-inflating. As such, the API is feared
> towards extracting the bytes associated with each part of a WASM file
> and expression.
> 
> While this did result in smaller sizes, it only saved about 2-5% so I
> don't believe it is worth the additional complexity.
> 
> That said, someone (like me?) might find this useful.


API
---

Parse a WASM binary file into its sections.

```javascript
import { parse } from "@ricmoo/wasm"

parse(wasm)
// {
//    magic,
//    version,
//    sections: [
//        {
//            type: "Code",
//            data: Uint8Array(), 
//            start, length
//        },
//        ...
//    ]
// }
```

```
import { parseExpr } from "@ricmoo/wasm"

parseExpr(expr, base = 0)
// [
//   {
//     opcode: 41, mnemonic: "i64.load", start: 100, length: 1,
//     imms: [
//       type: "memarg", value: { memidx: 0, align: 0, offset: 8 },
//       start: 101, length: 2
//     ]
//   },
//   ...
// ]
```


Example
-------

```javascript
import { readFileSync } from "node:fs";

import { parse, parseExpr } from "@ricmoo/wasm";


const data = readFileSync("test.wasm");

// Parse the code into its sections
const code = parse(data);

for (const sec of code.sections) {

    // Ignore non-CodeSection
    if (sec.type !== "Code") { continue; }

    // For each code in the CodeSection (e.g. each function)
    for (const { code, offset } of sec.code) {

        // Parse the code expression
        // Providing an offset will make `start` offset from `data`,
        // otherwise the offset is from `code`.
        const ops = parseExpr(code, offset);
        for (const op of ops) {

            // Show the opcode and raw bytes
            console.log(op.mnemonic, data.subarray(op.start, op.start + op.length));

            // For each immediate
            for (const imm of op.imms) {
                // Show the immediate type, value and raw bytes
                console.log("    ", imm.type, imm.value, data.subarray(imm.start, imm.start + imm.length));
            }
        }
    }
}
```


License
-------

MIT LIcense.
npm package: @ricneves/n8n-nodes-hotmart
Description: n8n community node for the Hotmart API
Author: Ricardo Neves
Latest version: 0.2.0

# n8n-nodes-hotmart

This is an n8n community node for the [Hotmart](https://www.hotmart.com/) API. It allows you to interact with Hotmart's platform for managing digital products, sales, subscriptions, and more.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Credentials

To use this node, you need a Hotmart developer account with API credentials:

1. Log in to your [Hotmart account](https://app-vlc.hotmart.com/)
2. Navigate to **Tools > Developer Credentials**
3. Click **Create Credential** and provide a name
4. Copy the **Client ID** and **Client Secret**
5. In n8n, create new Hotmart API credentials and paste the values

## Resources

This node supports the following resources and operations:

### Sale
- **Get History** - Retrieve sales history with filters
- **Get Summary** - Get commission totals per currency
- **Get Commissions** - Retrieve commission data for sales participants
- **Get Participants** - Display participants in sales
- **Get Price Details** - Show breakdown of sales prices
- **Get Refunds** - Access refund information

### Subscription
- **Get All** - List all subscriptions
- **Get Purchases** - View subscriber purchase history
- **Get Summary** - Get aggregated subscription data
- **Cancel** - Cancel a single subscription
- **Cancel Batch** - Bulk cancel multiple subscriptions
- **Change Due Day** - Modify subscription billing date

### Product
- **Get All** - List all products
- **Get Plans** - Display product plans
- **Get Offers** - Retrieve product offers

### Club (Members Area)
- **Get Students** - Retrieve enrolled students
- **Get Pages** - Display course pages and modules
- **Get Progress** - View student progress

### Ticket (Events)
- **Get Participants** - List event participants and tickets

### Affiliation
- **Get Affiliates** - Fetch affiliates for a product

## Compatibility

- Requires n8n version 1.0 or later

## License

[MIT](LICENSE)
npm package: @ricnsmart/tibiot
Description: js sdk for tibiot api
Author: Voson Wang
Latest version: 1.0.4

# tibiot

js sdk for tibiot api

## 接口列表
### 物联网卡管理
1. 网络状态查询
2. 操作网络状态

## 文档
https://api.tibiot.cn/docs/iot_api.html