
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
abu
helps you setup Tetra.js projects and its Jasmine test specs.
But remember - you should write your tests before you write your code!
npm install -g abu
abu --help
Run npm update -g abu
(or npm update -g
to update all global libraries)
By default, abu
will expect a Maven-configured project, with Tetra.js resources residing in the following folders
src\main\webapp\javascript\coremvc\apps
src\main\webapp\javascript\coremvc\model
src\test\javascript\coremvc
You can override these defaults by creating a file named abu.json
in the project root. Consult the file abu.sample.json
to see how this file should be formatted.
abu make [project]
abu
can build empty model, view and controller skeletons for new projects, along with test skeletons and empty fixtures.
C:\projects\myProject
)abu make myApp
, where myApp is the name of the application you want to createabu
will create
coremvc\apps\myApp
directorysrc\test\javascript\coremvc\myApp
locationsrc\test\javascript\fixtures\myApp
--model [model]
Make only this named model--controller [controller]
Make only this named controller--view [view]
Make only this named view--scope [scope]
Name of the scope to use (defaults to the name of the application)--overwrite
Overwrite any existing source files or test specsabu test [project]
abu
can generate partially completed Jasmine test specs for an existing project.
C:\projects\myProject
)abu test myApp
, where myApp is the name of the application you want to testabu
will run a check on the code, and then create
src\test\javascript\coremvc\myApp
location, for all models,
views and controllers found in the projectsrc\test\javascript\fixtures\myApp
--controller [controller]
Make specs only for this named controller--view [view]
Make specs only for this named view--overwrite
Overwrite any existing test specsabu validate [project]
abu
can run some basic validations on existing Tetra.js code.
C:\projects\myProject
)abu validate myApp
, where myApp is the name of the application you want to checkIf abu
finds a jshint.json
configuration file in the root directory, then JSHINT errors will be included in the output.
Consult the file jshint.sample.json
for an example.
If abu
finds an abu.json
configuration file with the options cyclomaticComplexityCeiling
or maintainabilityFloor
, it
will also output complexity statistics for files and functions with a cyclomatic complexity greater than the cyclomaticComplexityCeiling
value, or files with a Halstead maintainability index less than the maintainabilityFloor
value.
--model [model]
Only validate this named model--controller [controller]
Only validate this named controller--view [view]
Only validate this named viewHere's a few example commands and the files they create. Remember - abu make
will create empty test and MVC skeletons for
a new project. abu test
will create partially-completed test skeletons generated from an existing project.
abu make foo
abu make foo --model bar
abu make foo --controller bar
abu make foo --controller bar --scope baz
With scope set to the value 'baz'
abu make foo --view bar
abu test lightReco
abu test lightReco --model lightReco
abu test lightReco --controller lightReco
abu test lightReco --view lightReco
abu test miniprofile
Nothing will be created as, in this case, all the test spec files already exist
abu test miniprofile --overwrite
abu validate miniprofile
Pass --model [model]
, --controller [controller]
or --view [view]
, to limit the validation to a single file.
abu validate miniprofile > report.txt
(Windows)report.txt
.abu
?abu
is the kleptomaniac monkey from Disney's Aladdin. Say abu hello
and he'll say hi.
FAQs
Jasmine test skeleton builder for Tetra.js
The npm package abu receives a total of 1 weekly downloads. As such, abu popularity was classified as not popular.
We found that abu 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.