open-index/open-npm huggingface dataset:
npm package: @mtfm/cli
Description: A command line application for converting documents between various formats
Author: mbrt-yeah
Latest version: 1.2.0

# @mtfm/docx-to-html

Provides a command line application for converting documents between various formats.

This package is part of the Mutaforma monorepo.

## Table of contents

- [Installation](#installation)
- [Commands](#commands)
- [License](#license)

## Installation

```
npm install -g @mtfm/cli
```

## Commands

### mtfm docx-to-html

The `mtfm docx-to-html` command is used to convert a DOCX document to an HTML document.

#### Options

| Name short | Name long | Description                                     | Mandatory |
| ---        | ---       | ---                                             | ---       |
| --i        | --input   | Absolute or relative path to input file         | Yes       |
| --o        | --output  | Absolute or relative path to output folder      | Yes       |
| --c        | --config  | Absolute or relative path to configuration file | No        |

#### Example

```bash
mtfm docx-to-html --i path/to/input/file.docx --o path/to/output/folder --c path/to/config/file.json
```

#### Configuration

For a comprehensive overview of all available configuration settings and the required structure 
of the configuration file, please refer to the official [Mutaforma documentation](https://mutaforma.io/documentation).

## License

MIT
npm package: @mtfm/core
Description: Shared utilities and services that are used across multiple packages of the Mutaforma universe.
Author: mbrt-yeah
Latest version: 1.3.0

# @mtfm/core

Shared utilities and services that are used across multiple packages.

This package is part of the Mutaforma monorepo.

## Installation

```
npm install @mtfm/core
```
## License

MIT
npm package: @mtfm/core-models
Description: Shared models that are used across multiple packages of the Mutaforma universe.
Author: mbrt-yeah
Latest version: 2.1.0

# @mtfm/core-models

Shared models that are used across multiple packages.

This package is part of the Mutaforma monorepo.

## Installation

```
npm install @mtfm/core-models
```
## License

MIT
npm package: @mtfoley/keurig
Description: Generates Test Files
Author: Matthew Foley
Latest version: 1.0.2

## Keurig

This is a NodeJS module intended to be installed globally and its purpose is to scaffold Javascript test files for Javascript classes. The name is inspired by [Mocha](https://github.com/mochajs/mocha). This might already exist, but I have not gone looking for it!

It uses [@babel/parser](https://npmjs.com/package/@babel/parser) to parse the javascript files and identify Class Declarations, Class Methods, and Class Field assignments inside constructors. Based on this information, it generates test files for each class found.

## Install
1) Install globally from NPM:

`npm install -g @mtfoley/keurig`

## Usage
The tool accepts an optional outputDirectory argument. The default will be to use the current working directory. The required argument is the file or glob of files you want to create tests for.

`keurig [-d outputDirectory ] */**.js`

For example, if the target files include a file called `testClass.js`:
```javascript
    class TestClass {
        constructor(field1value){
            this.field1 = field1value;
        }
        method1(){}
        method2(x,y){}
    }
    class TestClass2 extends TestClass {
        constructor(field1value,field2value){
            super(field1value);
            this.field2 = field2value;
        }
        method3(x,y,z){}
    }
    module.exports = {TestClass,TestClass2};
```
And then running `keurig testClass.js ./tests`, the utility will create files in the ./tests directory like this for "TestClass.test.js":
```javascript
    // Test For TestClass
    before(function(done){
        done();
    });
        describe('constructor()',function(){
            it('succeeds',function(done){done();});
            it('has field field1',function(done){done();})
        });
        describe('method1()',function(){
            it('succeeds',function(done){done();});
        });
        describe('method2(x,y)',function(){
            it('succeeds',function(done){done();});
        });
    after(function(done){
        done();
    });
```
and this for TestClass2.test.js:
```javascript
    // Test For TestClass2
    before(function(done){
        done();
    });
        describe('constructor()',function(){
            it('succeeds',function(done){done();});
            it('has field field2',function(done){done();})
        });
        describe('Method method3(x,y,z)',function(){
            it('succeeds',function(done){done();});
        });
    after(function(done){
        done();
    });
```