open-index/open-npm huggingface dataset:
npm package: @netrunner/pbf-ts
Description: protobuf cli to create typescript declaration files for typescript schemas.
Author: phoenix344
Latest version: 1.0.10

# pbf-ts
Creates interface schema and encoder/decoder for protobuf.

The CLI is very simple:
```
pbfts [source dir] [target dir] file1.proto file2.proto ...
```

After parsing the protobuf schema the program will create an interface, a encoder and a decoder
for every message schema.

```protobuf
# src/myfile.proto
message Point {
    required uint32 x = 1;
    required uint32 y = 2;
    optional uint32 z = 3;
}
```

It creates a file with the name of the message:
```bash
pbfts ./src ./lib myfile.proto
# => ./lib/Point.ts
```

```typescript
export interface PointSchema {
    x: number;
    y: number;
    z?: number;
}
export const Point = {
    encode(obj: PointSchema): Buffer { ... },
    decode(buf: Buffer | Uint8Array): PointSchema { ... }
};
```

You can also use the writer functions in your own code:
```typescript
import { writeSchemaFile, writeSchemaFileSync } from "@netrunner/pbf-ts";

const pbfData = `
message User {
    required uint32 id = 1;
    required string name = 2;
    required bytes salt = 3;
    optional bytes hash = 4;
}
message Post {
    required uint32 id = 1;
    required uint32 user_id = 2;
    required string title = 3;
    required string description = 4;
}
`;

// synchronous file creation
writeSchemaFileSync(pbfData, {
    // // default options
    // indent: '    ',
    // suffix: 'Schema',
    // lineBreak: '\n',
    // writeDir: './'
});
// => User.ts
// => Post.ts

(async () => {
    // asynchronous file creation
    await writeSchemaFile(pbfData, {
        // // default options
        // indent: '    ',
        // suffix: 'Schema',
        // lineBreak: '\n',
        // writeDir: './'
    });
    // => User.ts
    // => Post.ts
});
```
npm package: @netrunner/registry-log
Description: Domain registry log based on hypercore and protobuf
Author: phoenix344
Latest version: 1.0.9

# registry-log
The registry log is a secure distributed append-only log for domains.

```
npm install @netrunner/registry-log
```

registry-log requires the [hypercore](https://www.npmjs.com/package/hypercore) library and changes
the encoding/decoding methods. The API is exactly the same as the hypercore API.

```typescript
const ram = require("random-access-memory");
const { registryLog } = require("@netrunner/registry-log");

const feed = registryLog(filename => ram(filename));

feed.ready(() => {
    feed.append({
        key: Buffer.from("the public key"),
        sig: Buffer.from("fake sig"),
        created: Date.now(),
        name: "google",
        target: "http://www.google.com"
    }, (err) => {
        if (err) return console.log(err);
        feed.get(0, (err, entry) => {
            if (err) return console.log(err);
            console.log(entry);
        });
    });
});
```
npm package: @netsells/adonis-make-component
Description: This package contains an Adonis provider to provider a `make:component` component. This command allows you to quickly bootstrap Component, Unit Test and Storybook files.
Author: Sam Turrell
Latest version: 1.3.0

# @netsells/adonis-make-component

This package contains an Adonis provider to provider a `make:component` component. This command allows you to quickly bootstrap Component, Unit Test and Storybook files.

## Installation

```sh
$ yarn add @netsells/adonis-make-component
```

Add the provider to your `start/app.js`:

```js
const aceProviders = [
    '@netsells/adonis-make-component/providers/CommandProvider',
];
```

## Usage

Run the command using ace:

```sh
$ node ace make:component <path>
```

`path` is the to the component from the root directory, for example, to bootstrap an `ArticleCard` component you would run:

```sh
$ node ace make:component resources/components/cards/ArticleCard
```

The command will then guide you through the bootstrapping process.
npm package: @netsells/crayon-cli
Description: Crayon is a frontend CLI tool for bootstrapping and scaffolding frontend applications. Much like laravels `artisan` CLI tool, it aims to reduce time in writing a lot of repetitive patterns.
Latest version: 1.0.4

# 🖍 Crayon CLI

Crayon is a frontend CLI tool for bootstrapping and scaffolding frontend applications. Much like laravels `artisan` CLI tool, it aims to reduce time in writing a lot of repetitive patterns.

## Installation

```bash
yarn add @netsells/crayon-cli
```

Or without installation:

```bash
npx @netsells/crayon-cli
```

## Commands

```txt
  crayon  — a frontend CLI tool for bootstrapping and scaffolding frontend applications. 
 
  .--.     ___ .-.      .---.   ___  ___    .--.    ___ .-.
 /    \   (   )   \    / .-, \ (   )(   )  /    \  (   )   \
|  .-. ;   | ' .-. ;  (__) ; |  | |  | |  |  .-. ;  |  .-. .
|  |(___)  |  / (___)   .'`  |  | |  | |  | |  | |  | |  | |
|  |       | |         / .'| |  | '  | |  | |  | |  | |  | |
|  | ___   | |        | /  | |  '  `-' |  | |  | |  | |  | |
|  '(   )  | |        ; |  ; |   `.__. |  | '  | |  | |  | |
'  `-' |   | |        ' `-'  |   ___ | |  '  `-' /  | |  | |
 `.__,'   (___)       `.__.'_.  (   )' |   `.__.'  (___)(___)
                                 ; `-' '
                                  .__.'


  USAGE 
  
    ▸ crayon <command> [ARGUMENTS...] [OPTIONS...]


  COMMANDS — Type 'crayon help <command>' to get some help about a command

    make:component                       Generate boilerplate for a new component               

  GLOBAL OPTIONS

    -h, --help                           Display global help or command-related help.           
    -V, --version                        Display version.                                       
    --no-color                           Disable use of colors in output.                       
    -v, --verbose                        Verbose mode: will also output debug messages.         
    --quiet                              Quiet mode - only displays warn and error messages.    
    --silent                             Silent mode: does not output anything, giving no       
                                         indication of success or failure other than the exit   
                                         code.                                                  

```

## Contributing

### Installation

```bash
# clone the repo
git clone git@github.com:netsells/crayon-cli
# cd into the directory
cd crayon-cli
# link the module for use elsewhere
npm link
```