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 plugin for autogrowing inputs. This plugin is different from others because most usually target textarea
tags, this library is instead targeted at input
tags.
Requires a DOM library such as jQuery, Zepto, or any that supports $.fn
plugins.
https://jsfiddle.net/xpvt214o/50743/
npm install input-autogrow
yarn add input-autogrow
bower install input-autogrow
# Gemfile
source 'https://rails-assets.org' do
gem 'rails-assets-input-autogrow'
end
# app/assets/javascripts/application.js
/*
*= require input-autogrow
*/
/* Makes input elements autogrow */
$('input.autogrow').inputAutogrow();
/* Manually trigger update */
$('input.autogrow').trigger('autogrow');
/* or */
$('input.autogrow').trigger('change');
/* Custom Options */
$('input.autogrow').inputAutogrow({maxWidth: 500, minWidth: 25, trailingSpace: 10});
/* Remove autogrow from input */
$('input.autogrow').inputAutogrow('destroy');
/* If the parent container width is changed (and maxWidth is not specified)
OR the options need to be changed, then you must destroy & re-initialize inputAutogrow */
$('input.autogrow').inputAutogrow('destroy');
$('input.autogrow').inputAutogrow();
maxWidth
- The max width of the autogrow - Defaults to the inputs parent width
minWidth
- The min width of the autogrow - Defaults to the inputs original input start width
trailingSpace
- This is extra spacing at the end of the input which is used until the maxWidth is hit - Default: 0
src/
and test/
folders.npm run test
gulp
to run the dist build after your done adding and testing your changes.Created & Maintained by Weston Ganger - @westonganger
Originally based on this Stackoverflow answer by James Padolsey
For any consulting or contract work please contact me via my company website: Solid Foundation Web Development
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.