You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ember-text-clipper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-text-clipper

Ember CLI addon for text-clipper.

0.1.1
Source
npmnpm
Version published
Weekly downloads
7
-46.15%
Maintainers
1
Weekly downloads
 
Created
Source

ember-text-clipper

npm version Build Status Ember Observer Score

An Ember CLI addon for text-clipper. Which is a performant and HTML-safe text clipper.

Currently using my text-clipper fork.

Installation

$ ember install ember-text-clipper

Usage

{{text-clipper text}}

Custom Length

Default is 200

{{text-clipper text length=60}}

Disable Expand/Collapse

Default is true, canCollapse will match canExpand if not defined

{{text-clipper text canExpand=false canCollapse=false}}

Custom Action text

Default is more and less

{{text-clipper text expandText="expand" collapseText="collapse"}}

text-clipper options

see text-clipper documentation

{{text-clipper text options=(hash ...)}}

Development

Installation

  • git clone <repository-url> this repository
  • cd ember-text-clipper
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

License

MIT

Keywords

ember-addon

FAQs

Package last updated on 23 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts