open-index/open-npm huggingface dataset:
npm package: @riaskov/node-pre-gyp-github
Description: A node-pre-gyp module which provides the ability to publish to GitHub releases. It's a fork of https://github.com/bchr02/node-pre-gyp-github with the latest features
Author: Bill Christo
Latest version: 3.0.0

# node-pre-gyp-github (2024 version)

##### A node-pre-gyp module which provides the ability to publish to GitHub releases.
It's a fork of https://github.com/bchr02/node-pre-gyp-github with the latest features.

## Usage

Instead of ```node-pre-gyp publish``` use **```node-pre-gyp-github publish```**

## Options for publish command

* --silent : Turns verbose messages off.
* --release : Publish the GitHub Release immediately instead of creating a Draft.

  For Ex. ```node-pre-gyp-github publish --release```

## Install

```bash
npm install -g @riaskov/node-pre-gyp-github
# or
yarn global add @riaskov/node-pre-gyp-github

```

## Configuration

This module is intended to be used with node-pre-gyp. Therefore, be sure to configure and install node-pre-gyp first. After having done that, within **```package.json```** update the ```binary``` properties ```host``` and ```remote_path``` so it matches the following format:

```json
{
  "host": "https://github.com/[owner]/[repo]/releases/download/",
  "remote_path": "{version}"
}
```

Be sure to replace ```[owner]```, ```[repo]```, with actual values,
but DO NOT replace ```{version}``` with actual version.

***WARNING: Variable substitutions are not supported on the ```host``` property and on the ```remote_path``` only ```{version}``` placeholder is supported. The value of ```remote_path``` after substitution will become a release tag name. Do not use [forbidden git tag characters](https://git-scm.com/docs/git-check-ref-format) for ```version``` and ```remote_path``` properties.***

Within GitHub, create a new authorization:

1. go to `Settings` -> `Developer settings`
2. click [`Personal access tokens`](https://github.com/settings/tokens)
3. click `Generate new token`
4. Select `public_repo` and `repo_deployment`
5. Generate Token
6. copy the key that's generated and set `NODE_PRE_GYP_GITHUB_TOKEN` environment variable to it. Within your command prompt:

```
SET NODE_PRE_GYP_GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```

## Example (Publish to GitHub as a Draft Release)

1. node-pre-gyp configure
2. node-pre-gyp build
3. node-pre-gyp package
4. node-pre-gyp-github publish

## Example (Publish to GitHub as a Release)

1. node-pre-gyp configure
2. node-pre-gyp build
3. node-pre-gyp package
4. node-pre-gyp-github publish --release
npm package: @riaskov/nst-graph-visualizer
Description: Generate a visualization of your NestJS app's dependency graph (Nest.js services, modules etc.)
Author: Andrei Riaskov
Latest version: 1.0.2

# nst-graph-visualizer 🔍✨

[![Module type: MinNode](https://img.shields.io/badge/Node.js->=20-brightgreen)]()
[![Module type: MinNest](https://img.shields.io/badge/Nest.js->=11-brightgreen)]()

> Generate a visualization of your NestJS app's dependency graph! 💥

---

## 🚀 Why nst-graph-visualizer?

- **Instant Architecture Overview**: See how your modules and providers connect at a glance.
- **Zero Side Effects**: No bootstrapping of NestFactory or unwanted runtime behaviors.
- **Minimal & Sexy**: A single CLI, one command, pure simplicity.

---

## 📦 Installation

Install globally:

```bash
npm install -g @riaskov/nst-graph-visualizer
```

Or as a dev dependency:

```bash
npm install --save-dev @riaskov/nst-graph-visualizer
```

---

## ⚡️ Quick Start

Generate a Mermaid diagram:

```bash
nst-graph-visualizer --entry src/app.module.ts
```

Generate a DOT file:

```bash
nst-graph-visualizer --entry dist/app.module.js --format dot
```

---

## ✨ Features

- 📝 **TS & JS Support**: Point to `.ts` or `.js`—CLI handles it for you.
- 📊 **Mermaid & DOT**: Embed directly in Markdown or render to SVG.
- 🔍 **Static Analysis**: No DI container, no NestFactory—just metadata parsing.

---

## 🛠️ CLI Options

| Option              | Description                                         | Default                |
| ------------------- | --------------------------------------------------- | ---------------------- |
| `--entry`, `-e`     | Path to your root module file (`.ts` or `.js`)      | _required_             |
| `--format`, `-f`    | Output format: `mermaid` or `dot`                   | `mermaid`              |
| `--output`, `-o`    | Destination file path                               | `dependency-graph.md`  |
| `--help`, `-h`      | Show help                                           | —                      |

---

## 🖼️ Mermaid Example

```markdown
```mermaid
graph TD
  AppModule["AppModule"]
  ConfigModule["ConfigModule"]
  AppModule --> ConfigModule
  # ... more nodes and edges
```
```

---

## 🧑‍💻 Development & Build

```bash
# Clone the repo
git clone https://github.com/ARyaskov/nst-graph-visualizer.git
cd nst-graph-visualizer

# Install deps
npm i

# Build to JS
npm run build

# Do npm link if you want to have a global version of a command
npm link
```

---

## 🤝 Contributing

1. Fork this repo 🍴
2. Create a feature branch (`feat/awesome-graph`)
3. Commit your changes and open a Pull Request 🚀

---

## 📄 License

Released under the [MIT License](LICENSE) ❤️

> _Crafted with love for clean code and sexy diagrams!_ 😎
npm package: @riaskov/xpub2address
Description: Extract bitcoin address from xpub for BIP49 and BIP84 schemes.
Author: Andrei Riaskov
Latest version: 1.0.1

# xpub2Address ![Bitcoin Badge](https://img.shields.io/badge/Bitcoin-F7931A?logo=bitcoin&logoColor=fff&style=flat) ![npm Badge](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=fff&style=flat)

> Convert xpub to BTC address using derivation path. 
>
> BIP49 (P2SH (Pay 2 Script Hash), 3-addresses) and BIP84 (bech32) are supported.


## Install

    $ yarn add @riaskov/xpub2address

## Usage

Available for JavaScript (ES6) and TypeScript.
Enable `esModuleInterop` in `tsconfig.json` in case of using TS.

Why? For using `import x from 'x'` instead of `import * as xNS from 'x'`. 

```js

import { xpub2Address } from '@riaskov/xpub2address'

const xpub = 'xpub69zoMzNAXE3cuayttWQcdamG8SoWacvbMYrTVNg2eTM325bWJMKo9Uvhp22ajraN7X2D7cnt674ejAJtkYb8Nop5fFrf3MWUN8QmqZdUcua'
const path = `m/49'/0'/0'/0/0`

console.log(xpub2Address(xpub, path))

// 32Cb5T65aRv96t2HNCviymeMy38xc6Btsc
```


```js

import { xpub2Address } from '@riaskov/xpub2address'

const xpub = 'xpub69zoMzNAXE3cuayttWQcdamG8SoWacvbMYrTVNg2eTM325bWJMKo9Uvhp22ajraN7X2D7cnt674ejAJtkYb8Nop5fFrf3MWUN8QmqZdUcua'
const path = `m/84'/0'/0'/0/0`

console.log(xpub2Address(xpub, path))

// bc1qkedqp6weywmvs84du9dc77xwytrmjmvlldfmed


import { xpub2Address } from '@riaskov/xpub2address'

const xpub = 'tpubDANRtEBrEW15BPAkLhPhqW6dTZuAa1ReuBSkqvjAzN6vmNGDNaAtHvbY447NGMXbuRZ7jCJkdCthRLoW9QSNGFGNirbxitAhx61BbYUeyD9'
const path = `m/49'/0'/0'/0/0`

console.log(xpub2Address(xpub, path))

// 2Msko9C27BtRVJfeq3LYbbiddBPM8S61ASt


```

## API

### xpub2Address(xpub: string, path: string)

Returns a string with derived BTC address.

##### xpub

Type: `string`

xpub.

##### path

Type: `string`

BIP32 Derivation path like `m/84'/coin_type'/account'/change/address`


### Known issues

- Only Account #0 in derivation path is supported now.

### Dependencies:

- [bitcoinjs-lib](https://www.npmjs.com/package/bitcoinjs-lib) Footprint ~ 300kb

#### PR's are welcome!


### License

- MIT © 2024 [Andrei Riaskov](https://github.com/ARyaskov)