Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ngx-autosize-app
Advanced tools
Directive that automatically adjusts textarea height to fit content
ngx-autosize is an Angular 10 directive that automatically adjusts textarea height to fit its content.
It adjusts the textarea height automatically to any text input, or changes to the model bound to the textarea.
$ npm install @techiediaries/ngx-autosize
First import the module as follow:
import {AutosizeModule} from '@techiediaries/ngx-autosize';
...
@NgModule({
imports: [
AutosizeModule
]
})
Use directly inside your HTML templates
<textarea autosize>
Angular 10 example
</textarea>
Name | Default | Type | Description |
---|---|---|---|
minRows | integer | Sets minimal amount of rows of the textarea | |
maxRows | integer | Sets maximum rows count after which autosizing if turned off and scrollbar appears | |
onlyGrow | false | boolean | Controls if autosize should make the textarea smaller. In other words... should empty lines be trimmed? |
useImportant | false | boolean | Controls if autosize should include !important in its height css styles. Should only need to be used if the height of the textarea is being overridden elsewhere |
Example
You need to implement 'onResized' yourself
## Credits
This library is based
[http://stevepapa.com/angular2-autosize](http://stevepapa.com/angular2-autosize)
and [ngx-autosize](https://www.npmjs.com/package/ngx-autosize)
FAQs
Directive that automatically adjusts textarea height to fit content
The npm package ngx-autosize-app receives a total of 3 weekly downloads. As such, ngx-autosize-app popularity was classified as not popular.
We found that ngx-autosize-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.