Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
input-autogrow
Advanced tools
input-autogrow
is a jQuery plugin for autogrowing inputs. This plugin is different from others because most usually target textarea
tags, this library is instead targeted at input
tags.
yarn add chosen-material-theme
npm install chosen-material-theme
bower install chosen-material-theme
# Gemfile
source 'https://rails-assets.org' do
gem 'rails-assets-input-autogrow'
end
# app/assets/javascripts/application.js
/*
*= require input-autogrow
*/
/* Makes elements readonly if they already have the readonly attribute */
$('input.autogrow').inputAutogrow();
/* Manually trigger update */
$('input.autogrow').trigger('autogrow');
/* or */
$('input.autogrow').trigger('change');
/* Update Autogrow field with updated parent container width */
$('input.autogrow').inputAutogrow();
/* Custom Options */
$('input.autogrow').inputAutogrow({maxWidth: 500, minWidth: 25, trailingSpace: 10});
/* Remove autogrow from input */
$('input.autogrow').inputAutogrow('destroy');
maxWidth
- Default: Inputs parent width
- The max width of the autogrow
minWidth
- Default: Original input start width
- The min width of the autogrow.
trailingSpace
- Default: 0
- This is extra spacing at the end of the input which is used until the maxWidth is hit.
Created by Weston Ganger - @westonganger
This plugin is based on a Stackoverflow answer by James Padolsey
FAQs
Autogrow plugin for inputs
The npm package input-autogrow receives a total of 274 weekly downloads. As such, input-autogrow popularity was classified as not popular.
We found that input-autogrow 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.