Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
leonardojs
Advanced tools
Mocking and testing made simple and consistent. Developed by Outbrain.
Angular (tested with v1.3) Angular Mocks module (tested with v1.3)
<!DOCTYPE HTML>
<html>
<body ng-app="app">
//.....
<script src="[bower_componenets|node_modules|other]/angular/angular.js"></script>
<script src="[bower_componenets|node_modules|other]/angular-mocks/angular-mocks.js"></script>
//.....
<script src="[bower_componenets|node_modules|other]/leonardos/leonardos.js"></script>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
//.....
<link rel="stylesheet" media="all" href="[bower_componenets|node_modules|other]/leonardos/leonardo.min.css" />
</head>
</html>
<!DOCTYPE HTML>
<html>
<body ng-app="app">
//.....
<script>
var myApp = angular.module("app", ["leonardo"]);
</script>
</body>
</html>
<!DOCTYPE HTML>
<html>
<body ng-app="app" leo-activator>
//.....
</body>
</html>
A plunker demonstration http://plnkr.co/edit/w8oaELXwQldv6AeZjnhD?p=preview
http://outbrain.github.io/Leonardo/docs/configuration.srv.html
cd
into the project folder
npm run compile
This compiles the code as well as documentation.
To automatically recompile the files on each change run
npm run compile:watch
Note that this does not recompile the documentation.
Note that this does not auto-refreshes the browser.
Running npm run compile
compiles the documentation. But if you need to recompile it later also,
(for example when running with gulp watch
) run
npm run compile:docs
Run local server and navigate to index.html
.
FAQs
Leonardo - Your mocking ninja - an add-on tool for centralizing your client side mocking
The npm package leonardojs receives a total of 102 weekly downloads. As such, leonardojs popularity was classified as not popular.
We found that leonardojs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.