{"_id":"jquery-ellipsis","_rev":"6-33273fb17e63010f477f426d1f3ac0ca","name":"jquery-ellipsis","description":"ellipsis text depending on number of lines or number of chars","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.2":{"name":"jquery-ellipsis","version":"0.1.2","description":"ellipsis text depending on number of lines or number of chars","private":false,"main":"./dist/jquery.ellipsis.min.js","style":"","scripts":{"test":"gulp test","test:watch":"gulp watch:test","build":"gulp","coveralls":"cat ./coverage/**/lcov.info | coveralls"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","devDependencies":{"babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","browser-sync":"^2.13.0","del":"^2.2.1","gulp":"^3.9.1","gulp-autoprefixer":"^3.1.0","gulp-babel":"^6.1.2","gulp-bump":"^2.7.0","gulp-cssnano":"^2.1.2","gulp-eslint":"^3.0.1","gulp-htmlmin":"^2.0.0","gulp-if":"^2.0.1","gulp-istanbul-report":"0.0.1","gulp-jasmine":"^2.4.0","gulp-karma":"0.0.5","gulp-load-plugins":"^1.2.4","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-sass":"^2.3.2","gulp-size":"^2.1.0","gulp-sourcemaps":"^1.6.0","gulp-strip-code":"^0.1.4","gulp-uglify":"^1.5.4","gulp-useref":"^3.1.0","karma":"^1.1.2","karma-coverage":"^1.1.1","karma-coveralls":"^1.1.2","karma-es6-shim":"^1.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.1","karma-spec-reporter":"0.0.26","yargs":"^7.1.0"},"eslintConfig":{"extends":"eslint:recommended","env":{"es6":true,"node":true,"browser":true},"rules":{"quotes":[2,"single"]}},"dependencies":{"jquery":"2.1.1"},"gitHead":"2257aa16ef31e2aef682f3c46d19f2db606ab11d","_id":"jquery-ellipsis@0.1.2","_shasum":"6fb328b2d10d17b61e2c4d9e0e5ee10d515a1c82","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"pencilpix","email":"pencilpix11@gmail.com"},"dist":{"shasum":"6fb328b2d10d17b61e2c4d9e0e5ee10d515a1c82","tarball":"https://registry.npmjs.org/jquery-ellipsis/-/jquery-ellipsis-0.1.2.tgz","integrity":"sha512-mTr/dkdssCm1wfa4SLQN+ujjfwsFuEOgS6G02CPxrj/x5+yJV+TKasQnYeERmNHZ3OFIFCd/H2eOjqMJz+HvQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPdrFBdLuoaQxnm9aNcp3TMnLrXgB+Kml7agERhfLtyAIhAJOSWlTWgUqSJdBLmyUz4ODg1MeBa5gvLHAFPqvAKmgv"}]},"maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jquery-ellipsis-0.1.2.tgz_1492316521645_0.8350640055723488"}},"0.1.3":{"name":"jquery-ellipsis","version":"0.1.3","description":"ellipsis text depending on number of lines or number of chars","private":false,"main":"./dist/jquery.ellipsis.min.js","style":"","scripts":{"test":"gulp test","test:watch":"gulp watch:test","build":"gulp","coveralls":"cat ./coverage/**/lcov.info | coveralls"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","devDependencies":{"babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","browser-sync":"^2.13.0","del":"^2.2.1","gulp":"^3.9.1","gulp-autoprefixer":"^3.1.0","gulp-babel":"^6.1.2","gulp-bump":"^2.7.0","gulp-cssnano":"^2.1.2","gulp-eslint":"^3.0.1","gulp-htmlmin":"^2.0.0","gulp-if":"^2.0.1","gulp-istanbul-report":"0.0.1","gulp-jasmine":"^2.4.0","gulp-karma":"0.0.5","gulp-load-plugins":"^1.2.4","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-sass":"^2.3.2","gulp-size":"^2.1.0","gulp-sourcemaps":"^1.6.0","gulp-strip-code":"^0.1.4","gulp-uglify":"^1.5.4","gulp-useref":"^3.1.0","jquery":"^3.2.1","karma":"^1.1.2","karma-coverage":"^1.1.1","karma-coveralls":"^1.1.2","karma-es6-shim":"^1.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.1","karma-spec-reporter":"0.0.26","yargs":"^7.1.0"},"eslintConfig":{"extends":"eslint:recommended","env":{"es6":true,"node":true,"browser":true},"rules":{"quotes":[2,"single"]}},"dependencies":{},"gitHead":"0c6239ec248006c1fa246d18fb303eaf569b5f29","_id":"jquery-ellipsis@0.1.3","_shasum":"465f687b0066f09b33876cbf43e5fb542b4d10dc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"pencilpix","email":"pencilpix11@gmail.com"},"dist":{"shasum":"465f687b0066f09b33876cbf43e5fb542b4d10dc","tarball":"https://registry.npmjs.org/jquery-ellipsis/-/jquery-ellipsis-0.1.3.tgz","integrity":"sha512-TbzSOhMR1VVgcfVhb0kjErJblYd6cBucssgVlh5XkMg+zk2AjDUboYLt0Llaz3w/QfTdWGDusZzmhe4DE4m62Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHx/oPh9RikJU9jv7aQzRoCRupILMgVn4p1a9lqXKTbpAiBzMKqMyyfng4MqZu56IiHdzOlSPq64Q3s4ZO2chiwxVg=="}]},"maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jquery-ellipsis-0.1.3.tgz_1492417117575_0.25201772968284786"}},"0.1.4":{"name":"jquery-ellipsis","version":"0.1.4","description":"ellipsis text depending on number of lines or number of chars","private":false,"main":"./dist/jquery.ellipsis.min.js","style":"","scripts":{"test":"gulp test","test:watch":"gulp watch:test","build":"gulp","coveralls":"cat ./coverage/**/lcov.info | coveralls"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","devDependencies":{"babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","browser-sync":"^2.13.0","del":"^2.2.1","gulp":"^3.9.1","gulp-autoprefixer":"^3.1.0","gulp-babel":"^6.1.2","gulp-bump":"^2.7.0","gulp-cssnano":"^2.1.2","gulp-eslint":"^3.0.1","gulp-htmlmin":"^2.0.0","gulp-if":"^2.0.1","gulp-istanbul-report":"0.0.1","gulp-jasmine":"^2.4.0","gulp-karma":"0.0.5","gulp-load-plugins":"^1.2.4","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-sass":"^2.3.2","gulp-size":"^2.1.0","gulp-sourcemaps":"^1.6.0","gulp-strip-code":"^0.1.4","gulp-uglify":"^1.5.4","gulp-useref":"^3.1.0","jquery":"^3.2.1","karma":"^1.1.2","karma-coverage":"^1.1.1","karma-coveralls":"^1.1.2","karma-es6-shim":"^1.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.1","karma-spec-reporter":"0.0.26","yargs":"^7.1.0"},"eslintConfig":{"extends":"eslint:recommended","env":{"es6":true,"node":true,"browser":true},"rules":{"quotes":[2,"single"]}},"dependencies":{},"gitHead":"c65eb01bd899ae9c56e22e0514620638535e8919","_id":"jquery-ellipsis@0.1.4","_shasum":"9501561da8313c02b21f9384b79ca40d653cc693","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"pencilpix","email":"pencilpix11@gmail.com"},"dist":{"shasum":"9501561da8313c02b21f9384b79ca40d653cc693","tarball":"https://registry.npmjs.org/jquery-ellipsis/-/jquery-ellipsis-0.1.4.tgz","integrity":"sha512-Rz5J6GdW1C/BRalhKC0bhwc311zv1wltw7xJ2TVnNGCQzh+fyKfrJNQqe3J2O9U40urRFfz0W0PNnBokKgjApA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvzT9OTVnphVrxh1kB1c+fGfuAgl7szwNsBbs/kSS1MQIhAKALaVZ0qt4xUINS/AAXR9Rp9wGJ2EZpNpNcX2XDWq4i"}]},"maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jquery-ellipsis-0.1.4.tgz_1492426629425_0.8040205158758909"}},"0.1.5":{"name":"jquery-ellipsis","version":"0.1.5","description":"ellipsis text depending on number of lines or number of chars","private":false,"main":"./dist/jquery.ellipsis.min.js","style":"","scripts":{"test":"gulp test","test:watch":"gulp watch:test","build":"gulp","coveralls":"cat ./coverage/**/lcov.info | coveralls"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","devDependencies":{"babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","browser-sync":"^2.13.0","del":"^2.2.1","gulp":"^3.9.1","gulp-autoprefixer":"^3.1.0","gulp-babel":"^6.1.2","gulp-bump":"^2.7.0","gulp-cssnano":"^2.1.2","gulp-eslint":"^3.0.1","gulp-htmlmin":"^2.0.0","gulp-if":"^2.0.1","gulp-istanbul-report":"0.0.1","gulp-jasmine":"^2.4.0","gulp-karma":"0.0.5","gulp-load-plugins":"^1.2.4","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-sass":"^2.3.2","gulp-size":"^2.1.0","gulp-sourcemaps":"^1.6.0","gulp-strip-code":"^0.1.4","gulp-uglify":"^1.5.4","gulp-useref":"^3.1.0","jquery":"^3.2.1","karma":"^1.1.2","karma-coverage":"^1.1.1","karma-coveralls":"^1.1.2","karma-es6-shim":"^1.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.1","karma-spec-reporter":"0.0.26","yargs":"^7.1.0"},"eslintConfig":{"extends":"eslint:recommended","env":{"es6":true,"node":true,"browser":true},"rules":{"quotes":[2,"single"]}},"dependencies":{},"gitHead":"b2c72b914cd5cfcbb9acb27735026d4bf83665cf","_id":"jquery-ellipsis@0.1.5","_shasum":"79cd52c7ab209f4982f8e8dfda6930755fe280d1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"pencilpix","email":"pencilpix11@gmail.com"},"dist":{"shasum":"79cd52c7ab209f4982f8e8dfda6930755fe280d1","tarball":"https://registry.npmjs.org/jquery-ellipsis/-/jquery-ellipsis-0.1.5.tgz","integrity":"sha512-ffdljYL9PW2hi5/fbVtWO2oDbuKfft1VoQxXlLMRNJOj4/Fq/aHtF0uidDK5uzr/M2dvKo0ZuCKc69U8UU7dXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmp1vHZ2QF9xtqoMDJur9qFgwttZepKBR+oV8qyklq4AiEAmp59YG9M6s4wfxdMku0QYq7jctATjxYyDYNsXaujLvs="}]},"maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jquery-ellipsis-0.1.5.tgz_1492505965900_0.18352337391115725"}},"0.1.6":{"name":"jquery-ellipsis","version":"0.1.6","description":"ellipsis text depending on number of lines or number of chars","private":false,"main":"./dist/jquery.ellipsis.min.js","style":"","scripts":{"test":"gulp test","test:watch":"gulp watch:test","build":"gulp","coveralls":"cat ./coverage/**/lcov.info | coveralls"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","devDependencies":{"babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","browser-sync":"^2.13.0","del":"^2.2.1","gulp":"^3.9.1","gulp-autoprefixer":"^3.1.0","gulp-babel":"^6.1.2","gulp-bump":"^2.7.0","gulp-cssnano":"^2.1.2","gulp-eslint":"^3.0.1","gulp-htmlmin":"^2.0.0","gulp-if":"^2.0.1","gulp-istanbul-report":"0.0.1","gulp-jasmine":"^2.4.0","gulp-karma":"0.0.5","gulp-load-plugins":"^1.2.4","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-sass":"^2.3.2","gulp-size":"^2.1.0","gulp-sourcemaps":"^1.6.0","gulp-strip-code":"^0.1.4","gulp-uglify":"^1.5.4","gulp-useref":"^3.1.0","jquery":"^3.2.1","karma":"^1.1.2","karma-coverage":"^1.1.1","karma-coveralls":"^1.1.2","karma-es6-shim":"^1.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.1","karma-spec-reporter":"0.0.26","yargs":"^7.1.0"},"eslintConfig":{"extends":"eslint:recommended","env":{"es6":true,"node":true,"browser":true},"rules":{"quotes":[2,"single"]}},"dependencies":{},"gitHead":"cadfc238c92ed75e44a94ac12f3a0ea76d2f400b","_id":"jquery-ellipsis@0.1.6","_shasum":"65aa992b29608506c5512da7f6dbf7113edb5d72","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"pencilpix","email":"pencilpix11@gmail.com"},"dist":{"shasum":"65aa992b29608506c5512da7f6dbf7113edb5d72","tarball":"https://registry.npmjs.org/jquery-ellipsis/-/jquery-ellipsis-0.1.6.tgz","integrity":"sha512-dSHHhKT+Www+b/boUi/KdkS0DBkMwWuArxEBIis30MeTEAnuiShKvaqYoEx327XKbnRSzjWr+LlH5WXdhX4ncQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZgvwjkESXwj0qQTrZZ0jrUGIhaLRWH/1FEUs9YA/0CQIgG3glU9jLKzdGC1T9R8RFNIeWUGyTuyUvrij4L3dgRug="}]},"maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jquery-ellipsis-0.1.6.tgz_1492734719074_0.5728599557187408"}}},"readme":"## ellipsis\n\n\nsimple jquery plugin that excerpts text depending on __lines__  or __characters__ number.\n\n[![Build Status](https://travis-ci.org/pencilpix/ellipsis.svg?branch=master)](https://travis-ci.org/pencilpix/ellipsis) [![Coverage Status](https://coveralls.io/repos/github/pencilpix/ellipsis/badge.svg?branch=develop)](https://coveralls.io/github/pencilpix/ellipsis?branch=develop) [![DevDependency Status](https://david-dm.org/pencilpix/ellipsis/dev-status.svg)](https://david-dm.org/pencilpix/ellipsis/?type=dev)\n\n---------------------------------------------------------------------------------------------------\n### installation.\n\n1. Download using one of the following Methods\n    * direct download or clone from this repository.\n    * via npm\n\n    ```bash\n      $ npm install --save jquery-ellipsis\n    ```\n    * via bower\n\n    ```bash\n      $ bower install --save ellipsis\n    ```\n\n2. please be sure to include`jquery >= 2.x` then include ellipsis:\n\n    ```html\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js\"></script>\n    <script src=\"path/to/jquery.ellipsis.min.js\"></script>\n    ```\n\n------------------------------------------------------------------------------------------------------\n### Usage\nellipsis can be used in two different ways:\n\n1. via `data` attributes.\n\n    ```html\n      <p data-toggle=\"ellipsis\" data-type=\"chars\" data-count=\"150\"> Amet id nisi ipsa pariatur eaque aperiam dolorum eius quia, vero provident? Doloremque impedit at cupiditate illum magnam, quo, vel corrupti. Esse voluptates hic vitae porro temporibus temporibus! Possimus rem.</p>\n    ```\n\n\n2. manual way:\n\n    ```html\n    <p id=\"ellipsis_me\">Amet id nisi ipsa pariatur eaque aperiam dolorum eius quia, vero provident? Doloremque impedit at cupiditate illum magnam, quo, vel corrupti. Esse voluptates hic vitae porro temporibus temporibus! Possimus rem.</p>\n\n    <script>\n    $(document).ready(function() {\n      $('#ellipsis_me').ellipsis(options);\n    });\n    </script>\n    ```\n\n\n\n---------------------------------------------------------------------------------------------------------------\n### options\n\noption     | type    | value\n-----------|---------|--------------------------------------------------------------------------------------\ntype       | String  | determines type is whether`chars` or `lines` number that the text should be excerpted.\ncount      | Number  | determines the number of `chars` or `lines` should the text be excerpted.\n\n\n### events\n\nevent                  | when\n-----------------------|-----------------------------------------------------------------------------------------------\ninitialize.ellipsis    | before the initialization of the plugin\ninitialized.ellipsis   | after the initialization.\nexcerpt.ellipsis       | before excerpt the text\nexcerpted.ellipsis     | after the text being excerpted\nupdate.ellipsis        | before updating when window is resized\nupdated.ellipsis       | after updating.\n\n\n#### example:\n  ```js\n  $('#paragraph').on('initialize.ellipsis', function() {\n    // do some stuff\n  });\n  ```\n\n\n\n---------------------------------------------------------------------------------------------------------------\n### Features:\n- [x] enhance the puplic API\n    - [x] two different types of excerpts by lines/characters\n    - [x] Support re-adjust option later.\n    - [x] different custom event through the life cycle of the plugin.\n    - [x] Destroyable.\n    - [x] data attribute automatic init.\n\n    - [ ] Up comming!\n        - [ ] use dedicated word instead of `...`\n        - [ ] use url to show more.\n        - [ ] use link class to control the style of link.\n\n","maintainers":[{"name":"pencilpix","email":"pencilpix11@gmail.com"}],"time":{"modified":"2022-06-19T05:02:21.299Z","created":"2017-04-16T04:22:02.201Z","0.1.2":"2017-04-16T04:22:02.201Z","0.1.3":"2017-04-17T08:18:38.283Z","0.1.4":"2017-04-17T10:57:10.108Z","0.1.5":"2017-04-18T08:59:28.012Z","0.1.6":"2017-04-21T00:32:00.996Z"},"keywords":["excerpt","ellipsis","trunc","text","paragraph"],"author":{"name":"Mohamed Hassan"},"license":"MIT","readmeFilename":"README.md"}