typedoc-plugin-bitcoinjs-runcase
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Typedoc BitcoinJS RunCase Plugin

This is a Typedoc plugin that allows you to load BitcoinJS in a web page and run code online.

Usage

  1. Install the plugin:
npm install typedoc-plugin-bitcoinjs-runcase --save-dev
  1. Add the plugin to your Typedoc configuration:
{
  "plugins": ["typedoc-plugin-bitcoinjs-runcase"]
}
  1. In your code comments, use @case tag to mark code blocks that should be runnable:
/**
 * This is an example of using BitcoinJS.
 *
 * @case
 * ```typescript
 * console.log('address:toBech32:::');
 * console.log(address.toBech32('751e76e8199196d454941c45d1b3a323', 2, 'bc'))
 * ```
 */
  1. Plugin build result

image

  1. You can edit your case and run it!

Package Sidebar

Install

npm i typedoc-plugin-bitcoinjs-runcase

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

91.1 kB

Total Files

14

Last publish

Collaborators

  • jasonandjay