# ember-computed-template-string

> One-line string computed properties

Latest version **0.1.4** (published 2016-08-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ember-computed-template-string
pnpm add ember-computed-template-string
yarn add ember-computed-template-string
bun add ember-computed-template-string
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-08-12 |
| First published | 2016-06-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 5.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Intercom Engineering |
| Maintainers | gavinjoyce |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-computed-template-string
- Repository: https://github.com/intercom/ember-computed-template-string
- Homepage: https://github.com/intercom/ember-computed-template-string#readme
- Issues: https://github.com/intercom/ember-computed-template-string/issues
- npm.io page: https://npm.io/package/ember-computed-template-string

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6
- [ember-computed-template-string-parser](https://npm.io/package/ember-computed-template-string-parser.md) 0.1.0

## Recent versions

- 0.1.4 (latest) — 2016-08-12
- 0.1.3 — 2016-08-12
- 0.1.2 — 2016-06-20
- 0.1.1 — 2016-06-19
- 0.1.0 — 2016-06-17
- 0.0.2 — 2016-06-17
- 0.0.1 — 2016-06-17

## README

# ember-computed-template-string

[![Build Status](https://travis-ci.org/intercom/ember-computed-template-string.svg?branch=master)](https://travis-ci.org/intercom/ember-computed-template-string) [![Ember Observer Score](http://emberobserver.com/badges/ember-computed-template-string.svg)](http://emberobserver.com/addons/ember-computed-template-string)

Consider the canonical computed property example:

```js
Ember.Object.extend({
  firstName: 'Serena',
  lastName: 'Fritsch',

  fullName: Ember.computed('firstName', 'lastName', function() {
    return `${this.get('firstName')} ${this.get('lastName')}`;
  })
});
```

`ember-computed-template-string` provides a macro which removes the duplication:

```js
import templateString from 'ember-computed-template-string';

Ember.Object.extend({
  firstName: 'Serena',
  lastName: 'Fritsch',

  fullName: templateString("${firstName} ${lastName}")
});
```

## Installation

This is an Ember CLI addon, to install:

`ember install ember-computed-template-string`

## Development Instructions

* `git clone` this repository
* `npm install`
* `bower install`

### Running

* `ember server`
* Visit your app at http://localhost:4200.

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