Skip to content

Commit

Permalink
Removing test and other unused files from npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Nov 1, 2019
1 parent 3d3c451 commit ddc665c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ console.log('Trimmed Text is: ', trimmedText);

## Parameters

| Attributes | Type | Required | Description |
| ----------- | ----- | ----------- | ------------- |
| text | String | Yes | Text to trim. |
| numWords | String | No | Number of words.<br><br> Default value is `55`. |
| more | String | No | What to append if `text` needs to be trimmed.<br><br> Default `` |
| Attributes | Type | Required | Default | Description |
|-------------|:-----:|:-----------:|:--------:|--------------|
| text | String | Yes | | Text to trim. |
| numWords | Integer | No | `55` | Number of words. |
| more | String | No | `&hellip;` | What to append if the `text` needs to be trimmed. |

## Return

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "trim-words",
"version": "1.1.0",
"version": "1.2.1",
"description": "Trims text to a certain number of words.",
"main": "index.js",
"files": [
"LICENSE",
"index.js",
"test/runkit.js"
],
"scripts": {
"test": "node test/all.js"
},
Expand All @@ -24,7 +29,7 @@
},
"homepage": "https://github.com/samiahmedsiddiqui/trim-words#readme",
"dependencies": {
"trim-php": "^1.0.0"
"trim-php": "^1.1.0"
},
"runkitExampleFilename": "test/runkit.js"
}

0 comments on commit ddc665c

Please sign in to comment.