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.
org.webjars.bower:github-com-lisposter-angular-zeroclipboard
Advanced tools
WebJar for angular-zeroclipboard
An angular wrapper for ZeroClipboard
$ bower install angular-zeroclipboard
or, you can download 'angular-zeroclipboard.js' form 'src' dir manualy.
angular.module('demo', ['zeroclipboard']).
config(['uiZeroclipConfigProvider', function(uiZeroclipConfigProvider) {
// config ZeroClipboard
uiZeroclipConfigProvider.setZcConf({
swfPath: '../bower_components/zeroclipboard/dist/ZeroClipboard.swf'
});
}])
Example using a two-way model binding
<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true" zeroclip-model="myText">Copy</button>
<span ng-show="copied">Text Copied!</span>
Example using interpolated text:
<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true"
zeroclip-text="This was your text: {{ myText }}">Copy</button>
<span ng-show="copied">The sentence "This was your text: {{ myText }}" was copied!</span>
Configuration passed into ZeroClipboard.config
uiZeroclipConfigProvider.setZcConf({
swfPath: '../path/to/ZeroClipboard.swf'
})
If you already have your own configuration and don't want it to be overridden:
uiZeroclipConfigProvider.setOverrideConfig(false);
The params is an object. and just same as ZeroClipboard official config
MIT @ Leigh Zhu
FAQs
WebJar for angular-zeroclipboard
We found that org.webjars.bower:github-com-lisposter-angular-zeroclipboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.