Skip to content

Commit

Permalink
build: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 10, 2022
1 parent cc51f3b commit df37d47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
unsafe-perm=true
save-prefix=~
shrinkwrap=false
save=false
save=false
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ import NanoClamp from 'nanoclamp';

## API

prop | type | default | description |
-----|------|--------------------|-------------|
accessibility | `boolean` | `true` | Pass the full _unclamped_ string to the DOM element's `title` attribute
className | `string` | | CSS classname(s) added to the string
debounce | `number` | `300` | Time in milliseconds used for debounce
ellipsis | `string` | `'…'` | String displayed after the clamped `text`
is | `string` | `'div'` | DOM selector used to render the string
lines | `number` | `3` | Number of visible lines
text | `string` | | Text you wish to clamp
| prop | type | default | description |
|---------------|-----------|---------|-------------------------------------------------------------------------|
| accessibility | `boolean` | `true` | Pass the full _unclamped_ string to the DOM element's `title` attribute |
| className | `string` | | CSS classname(s) added to the string |
| debounce | `number` | `300` | Time in milliseconds used for debounce |
| ellipsis | `string` | `'…'` | String displayed after the clamped `text` |
| is | `string` | `'div'` | DOM selector used to render the string |
| lines | `number` | `3` | Number of visible lines |
| text | `string` | | Text you wish to clamp |

## License

**nanoclamp** © [Microlink](https://microlink.io), Released under the [MIT](https://github.com/microlinkhq/nanoclamp/blob/master/LICENSE) License.<br>
**nanoclamp** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/nanoclamp/blob/master/LICENSE) License.<br>
Adapted from [`react-clamp-lines`](https://github.com/zoltantothcom/react-clamp-lines) by Brad Adams with help from [contributors](https://github.com/microlinkhq/nanoclamp/contributors).

> [microlink.io](https://microlink.io) · GitHub [@MicrolinkHQ](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
> [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"babel-plugin-transform-react-pure-class-to-function": "latest",
"babel-plugin-transform-react-remove-prop-types": "latest",
"eslint-plugin-jsx-a11y": "latest",
"husky": "latest",
"lint-staged": "latest",
"simple-git-hooks": "latest",
"nano-staged": "latest",
"prettier-standard": "latest",
"prop-types": "latest",
"react": "^18",
Expand Down Expand Up @@ -67,12 +67,10 @@
"test": "exit 0"
},
"license": "MIT",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"simple-git-hooks": {
"pre-commit": "nano-staged"
},
"lint-staged": {
"nano-staged": {
"package.json": [
"finepack"
],
Expand Down

0 comments on commit df37d47

Please sign in to comment.