Skip to content

Commit

Permalink
bump version, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
skrsm committed Sep 23, 2020
1 parent 56a5842 commit 53d364b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<a href="https://www.gnu.org/licenses/gpl-3.0.html">
<img alt="License" src="https://img.shields.io/badge/License-GPL-blue.svg">
</a>
<a href="https://snyk.io/test/npm/cuttr/1.0.2">
<img src="https://snyk.io/test/npm/cuttr/1.0.2/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/npm/cuttr/1.0.2" style="max-width:100%;">
<a href="https://snyk.io/test/npm/cuttr/1.1.1">
<img src="https://snyk.io/test/npm/cuttr/1.1.1/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/npm/cuttr/1.0.2" style="max-width:100%;">
</a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K9X3RW27WJHWE&source=url">
<img alt="License" src="https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg">
Expand All @@ -21,7 +21,7 @@
* Multiple truncation methods
* Truncate text without breaking the HTML <!-- * Option to maintain original text after truncation -->
* Custom ellipsis strings
* Optional "Read more" anchor
* Optional "Read more" anchor to expand original content

[Demos online](https://cuttr.kulahs.de/examples.html) | [Codepen Example](https://codepen.io/herkulas/pen/xxZNXGv)

Expand All @@ -30,18 +30,28 @@
## Install
### Download

- [cuttr.min.js](https://unpkg.com/cuttr@1.1.0/dist/cuttr.min.js) minified, or
- [cuttr.js](https://unpkg.com/cuttr@1.1.0/dist/cuttr.js) un-minified
- [cuttr.min.js](https://unpkg.com/cuttr@1/dist/cuttr.min.js) minified, or
- [cuttr.js](https://unpkg.com/cuttr@1/dist/cuttr.js) un-minified


### CDN

Link directly to Cuttr files on [unpkg](https://unpkg.com).

``` html
<script src="https://unpkg.com/cuttr@1.1.0/dist/cuttr.min.js"></script>
<script src="https://unpkg.com/cuttr@1/dist/cuttr.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/[email protected]/dist/cuttr.js"></script>
<script src="https://unpkg.com/cuttr@1/dist/cuttr.js"></script>

```

Link directly to Cuttr files on [cdnjs](https://cdnjs.com).

``` html
<script src="https://cdnjs.cloudflare.com/ajax/libs/cuttr/1.1.1/cuttr.min.js"></script>
<!-- or -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/cuttr/1.1.1/cuttr.js"></script>

```

### Package managers
Expand Down Expand Up @@ -90,6 +100,10 @@ As you can see in the example files, you will need to include:
```html
<script type="text/javascript" src="cuttr.js"></script>
```
Or as a module
```sh
import Cuttr from 'Cuttr';
```

### Initialization

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cuttr",
"description": "Cuttr is a javascript plugin that truncates multi-line text content with multiple truncation methods and custom ellipsis.",
"main": "dist/cuttr.js",
"version": "1.1.1",
"version": "1.1.2",
"authors": [
"DEVSK"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/cuttr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Cuttr 1.1.0
* Cuttr 1.1.2
* https://github.com/d-e-v-s-k/cuttr-js
*
* @license GPLv3 for open source use only
Expand Down
2 changes: 1 addition & 1 deletion dist/cuttr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cuttr.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cuttr",
"version": "1.1.1",
"version": "1.1.2",
"description": "Cuttr is a javascript / jQuery plugin that truncates multi-line text content with multiple truncation methods and custom ellipsis.",
"main": "dist/cuttr.js",
"unpkg": "dist/cuttr.min.js",
Expand Down
4 changes: 2 additions & 2 deletions src/cuttr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Cuttr 1.1.0
* Cuttr 1.1.2
* https://github.com/d-e-v-s-k/cuttr-js
*
* @license GPLv3 for open source use only
Expand Down Expand Up @@ -361,4 +361,4 @@ if(window.jQuery && window.Cuttr){
var instance = new Cuttr(this, options);
};
})(window.jQuery, window.Cuttr);
}
}

0 comments on commit 53d364b

Please sign in to comment.