# mimosa-coco

> A Coco compiler for Mimosa 2.0+

Latest version **1.0.1** (published 2014-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mimosa-coco
pnpm add mimosa-coco
yarn add mimosa-coco
bun add mimosa-coco
```

## 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.0.1 |
| Published | 2014-03-01 |
| First published | 2014-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Bashford |
| Maintainers | dbashford |
| Keywords | mimosa, mmodule, compiler, coco |

## Links

- npm: https://www.npmjs.com/package/mimosa-coco
- Repository: https://github.com/dbashford/mimosa-coco
- Issues: https://github.com/dbashford/mimosa-coco/issues
- npm.io page: https://npm.io/package/mimosa-coco

## Dependencies (1)

- [coco](https://npm.io/package/coco.md) 0.9.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-03-01
- 1.0.0 — 2014-01-13

## README

mimosa-coco
===========

## Overview

This is a Coco compiler for the Mimosa build tool. This module is for use with Mimosa `2.0+`.  This replicates the functionality of the Coco compiler that was built into Mimosa before `2.0`.

For more information regarding Mimosa, see http://mimosa.io

## Usage

Add `'coco'` to your list of modules.  That's all!  Mimosa will install the module for you when you start `mimosa watch` or `mimosa build`.

## Functionality

This module will compile Coco files during `mimosa watch` and `mimosa build`.

Coco, by default, wraps compiled JavaScript in a safety wrapper to protect scope. This module turns this wrapping off by compiling `bare` by default. It does this because it assumes code is already being wrapped in AMD or CommonJS/AMD functions `define` or `require`.

All Coco configuration options can be provided in the `options` object. `bare` is the only one provided values by this module.

## Default Config

```coffeescript
coco:
  lib: undefined
  extensions: ["co", "coco"]
  options:
    bare:true
```

* `lib`: You may want to use this module but may not be ready to use the latest version of Coco. Using the `lib` property you can provide a specific version of Coco if the one being used by this module isn't to your liking. To provide a specific version, you must have it `npm install`ed into your project and then provide it to `lib`. For instance: `lib: require('coco')`.
* `extensions`: an array of strings, the extensions of your Coco files.
* `options`: an object, the Coco compiler configuration. This object is passed straight to the Coco compiler. New properties can be added here to tweak Coco compilation.
* `options.bare`: a Coco compiler option to turn on/off the safety wrapper.

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