Wondering what’s next for npm?Check out our public roadmap! »

    angular-middle-ellipses

    1.0.1 • Public • Published

    angular-middle-ellipses

    Truncate a string by showing an ellipses in the middle

    npm version dependencies Build Status

    Installation

    Install angular-middle-ellipses by running:

    $ npm install --save angular-middle-ellipses

    Documentation

    Add angular-middle-ellipses to your Angular module dependency list:

    var MyApp = angular.module('MyApp', [
      require('angular-middle-ellipses')
    ]);

    Make use of the middleEllipses filter in a template by passing the desired maximum amount of characters as an argument:

    {{ 'MyVeryLongString' | middleEllipses:9 }}

    MyVe…ring
    

    Support

    If you're having any problem, please raise an issue on GitHub and I'll be happy to help.

    Tests

    Run the test suite by doing:

    $ npm test

    Contribute

    Before submitting a PR, please make sure that you include tests, and that jshint runs without any warning:

    $ npm run lint

    License

    The project is licensed under the MIT license.

    Install

    npm i angular-middle-ellipses

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar