# mip-processor

> MIP Base Processor Class

Latest version **1.2.2** (published 2016-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install mip-processor
pnpm add mip-processor
yarn add mip-processor
bun add mip-processor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2016-10-17 |
| First published | 2016-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | ecomfe |
| Keywords | mip, tool, build, processor |

## Links

- npm: https://www.npmjs.com/package/mip-processor
- Repository: https://github.com/mipengine/mip-processor
- Homepage: https://github.com/mipengine/mip-processor#readme
- Issues: https://github.com/mipengine/mip-processor/issues
- npm.io page: https://npm.io/package/mip-processor

## Dependencies (2)

- [minimatch](https://npm.io/package/minimatch.md) ^3.0.3
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2016-10-17
- 1.2.1 — 2016-10-17
- 1.2.0 — 2016-10-13
- 1.1.1 — 2016-10-13
- 1.1.0 — 2016-10-12
- 1.0.0 — 2016-10-06

## README

mip-processor
===========

MIP Base Processor Class


<a href="https://circleci.com/gh/mipengine/mip-processor/tree/master"><img src="https://img.shields.io/circleci/project/mipengine/mip-processor/master.svg?style=flat-square" alt="Build Status"></a>


### usage

```js
var MipProcessor = require('mip-processor');
var less = require('less');

var LessProcessor = MipProcessor.derive({
    name: 'LessCompiler',
    files: ['*.less'],

    processFile: function (file) {
        var paths = [];

        var options = {
            relativeUrls: true,
            compress: true,
            paths: paths,
            filename: file.fullPath
        };

        return less.render(file.data, options).then(
            function (result) {
                file.outputPath = file.outputPath.replace(/\.less$/i, '.css');
                file.setData(result.css);
                return true;
            }
        );
    }
});
```

---
_Source: https://npm.io/package/mip-processor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
