Skip to content

Commit

Permalink
Merge pull request #41 from sineverba/fix
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
sineverba committed Feb 23, 2023
2 parents 57b215e + d416c59 commit cfa6fe1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 1.3.1
# 2.0.0
+ Change usage. Fix instructions

## 1.3.1
+ Fix missing dist

## 1.3.0
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ E.g. "This is a long string" will return "This is a ..."
## Usage

```js
var shortener = require('shortfield');
var shorted = shortener("This is a long string"); // default length is 10
import { Shortener } from "shortfield";

var shorted = Shortener("This is a long string"); // default length is 10
console.log(shorted); // returns This is a ...

var shorted = shortener("This is a long string", 4);
var shorted = Shortener("This is a long string", 4);
console.log(shorted); // returns This...
```

## Tests

`npm run test` for simple test

`npm run cover` for coverage
`npm run coverage` for coverage
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "shortfield",
"version": "1.3.1",
"version": "2.0.0",
"description": "Make short a long string, concatenated with three dots",
"main": "index.js",
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/sineverba/npm-pkg-shortfield.git"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=npm-pkg-shortfield
sonar.projectVersion=1.3.1
sonar.projectVersion=2.0.0
sonar.organization=sineverba
sonar.sources=src
sonar.exclusions=**/node_modules/**,src/__tests__/**
Expand Down

0 comments on commit cfa6fe1

Please sign in to comment.