# jade-6to5

> Simple module which adds a 6to5 (ES6 to ES5) filter to jade.

Latest version **3.0.0** (published 2015-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install jade-6to5
pnpm add jade-6to5
yarn add jade-6to5
bun add jade-6to5
```

## 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 | 3.0.0 |
| Published | 2015-01-28 |
| First published | 2014-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Author | Apox |
| Maintainers | apox, sebmck, thejameskyle |

## Links

- npm: https://www.npmjs.com/package/jade-6to5
- Repository: https://github.com/Apoxx/jade-6to5
- Issues: https://github.com/Apoxx/jade-6to5/issues
- npm.io page: https://npm.io/package/jade-6to5

## Dependencies (1)

- [6to5-core](https://npm.io/package/6to5-core.md) ^3.0.0

## Recent versions

- 3.0.0 (latest) — 2015-01-28
- 0.0.2 — 2014-10-11
- 0.0.1 — 2014-10-10

## README

#Jade-6to5

This is a simple module which adds a 6to5 (ES6 to ES5) filter to jade.

##Installation

    $ npm install jade-6to5

##Usage

```js
var jade = require('jade');
var to5 = require('jade-6to5');

jade.filters.to5 = to5({});
```

OR

```js
var jade = require('jade');
var to5 = require('jade-6to5');

jade = to5({}, jade);
```


Now you can use ES6 in your jade templates as following.

```jade
script
	:to5
		console.log('Hello World !!!');
		class Person{
			constructor(name){
				this.name = name;
			}
			sayName(){
				console.log(`Hello, my name is ${this.name}`);
			}
		}
		var pers = new Person('Apoxx');
		pers.sayName();
```

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