Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
yu-img-upload
Advanced tools
this script is just for image upload,it support pc ios and android. in pc & ios you can clear what you picked and repick the pictures;in android you should pick and delete the picture only one by one.
Using npm:
$ npm install --save yu-img-upload
$ import imgUpload from 'yu-img-upload'
You can use npm run dev
to check the example file in node package
new imgUpload({
popup:true,
multiple:true,
name:'file',
target:document.querySelector('.imgUpload'),
maxnum:6,
maxsize:0.5,
accept:'image/gif,image/jpeg,image/jpg,image/png,image/svg',
hint:'icon',
});
* @param {object[]} option
* @param {boolean} [option[].popup = true] - should it use yu-popup or alert
* @param {boolean} [option[].multiple = true] - should it accept multiple files
* @param {string} [option[].name = file] - the name of input
* @param {obejct} [option[].target = document.querySelector('.imgUpload')] - which dom to render
* @param {number} [option[].maxnum = 9] - the max number of pictures that can be upload
* @param {number} [option[].maxsize = 1] - the max size of eeach picture
* @param {string} [option[].accept = image/gif,image/jpeg,image/jpg,image/png,image/svg] - the format of picture that can be accepted
* @param {string} [option[].hint = icon] - how button shows
FAQs
a simple images upload plugin with preview
The npm package yu-img-upload receives a total of 1 weekly downloads. As such, yu-img-upload popularity was classified as not popular.
We found that yu-img-upload 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.