# beyo-plugin-coefficient-format

> Data formatter helper for co-efficient engines.

Latest version **0.0.0-3** (published 2014-05-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install beyo-plugin-coefficient-format
pnpm add beyo-plugin-coefficient-format
yarn add beyo-plugin-coefficient-format
bun add beyo-plugin-coefficient-format
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.0-3 |
| Published | 2014-05-16 |
| First published | 2014-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yanick Rochon |
| Maintainers | yanickrochon |
| Keywords | co-efficient, format, globalize |

## Links

- npm: https://www.npmjs.com/package/beyo-plugin-coefficient-format
- Repository: htts://github.com/beyo/plugin-coefficient-format
- Homepage: https://github.com/beyo/plugin-coefficient-format
- Issues: https://github.com/beyo/plugin-coefficient-format/issues
- npm.io page: https://npm.io/package/beyo-plugin-coefficient-format

## Dependencies (3)

- [co-fs](https://npm.io/package/co-fs.md) ^1.2.0
- [globalize](https://npm.io/package/globalize.md) 0.1.1
- [co-efficient](https://npm.io/package/co-efficient.md) *

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.0-3 (latest) — 2014-05-16
- 0.0.0-2 — 2014-05-16
- 0.0.0-1 — 2014-05-16

## README

# Beyo Plugin Co-Efficient Format Helper

Add a `{&{format /}}` helper to co-efficient engine instances.

**Note**: currently, this plugin make use of `Globalize v0.1.1` and will be upgraded
to use the `1.x` version as soon as it is no longer alpha, and it is ready for production.


## Install

```
npm install beyo-plugin-coefficient-format --save
```


## Usage

The helper will automatically register itself to all new co-efficient engine
instances.


### Configuration

Configure the plugin from your beyo application configuration

```json
{
  "plugins": {
    "co-efficient-format": {
      "module": "beyo-plugin-coefficient-format",
      "options": {
        
      }
    }
  }
}
```

**Note**: use `options` to configure types. *(TBD)*


### Template Usage

A typical template usage would be

```
<div>{&{format type="datetime" value=user.lastLogin locale=locale /}}</div>
```

Which, given the engine call to 

```
var html = yield engine.render('templatename', { 
  user: {
    //...
    lastLogin: Date.now()
  },
  locale: 'fr'
});
```

Would output something like : `<div></div>`.


## Globalize

The plugin make uses of Globalize. See [beyo-plugin-globalize](htts://github.com/beyo/plugin-globalize)
to configure it.


## Contribution

All contributions welcome! Every PR **must** be accompanied by their associated
unit tests!


## License

The MIT License (MIT)

Copyright (c) 2014 Mind2Soft <yanick.rochon@mind2soft.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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