
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.
generator-g4-module
Advanced tools
> [Yeoman](http://yeoman.io) generator that scaffolds out the module structure
Yeoman generator that scaffolds out the module structure
Automatically fetch latest version in modules repository and tests
Make sure you have svn installed
Linux
sudo apt-get install subversion
Mac OSX
brew install subversion
If you implement a plugin for Marionette, you will only need the Marionette plugin name and no module.exports
will be needed.
If you implement a simple function, you will only need the standalone name.
Defined in src/view.coffee
Marionette.G4.BoilerPlate
Defined in grunt/browserify.coffee
G4.boilerPlate
To build & run all tests (unit and functional)
$ npm run travis
To open istanbul report in your default browser
$ npm run report
To open SpecRunner in your default browser
$ npm run spec
To open functional test in your default browser
$ npm run example
To publish your module with safety
$ npm run update_package
$ cd
$ nano .bash_profile
export chromeBinaryPath='/Users/user/Documents/drivers/'
export PATH="$chromeBinaryPath:$PATH"
$ echo $PATH
This Boilerplate helps to create bundled and tested, es6-transpiled front-end modules for the Browser.
$ git clone https://github.com/elgubenis/es6-module-boilerplate-browser
$ cd es6-module-boilerplate-browser/
$ npm install
$ gulp
To start developing, modify the source in src/ or modify the tests in test/spec/ and your browser should reload automatically and run the tests and show coverage information. When the coverage is over 89% minified and original distribution files are getting created in the dist/ folder.
How can I add more specs?
Create another .js file in the test/spec folder and require it on the
bottom of the server/index.html file.
How do distribution files getting created?
After every mocha run in your browser, the blanket.js coverage percentage is
being parsed and when the coverage is over 89%, only then the gulp build task
will get started. That task creates a minified and an original version
of the bundled src/index.js script and moves it to the the dist/ folder/.
Ready for publish!
What are the benefits from running unit tests in a Browser?
Doing unit tests with JSDom or PhantomJS overcomplicates things alot, you'd
also have to take care of more files and code to get up and running.
By opening tests in a real Browser though, you can just pretend you are
someone who wants to use the module and implement it just like documented.
And finally. you can use the same Browser to evaluate your front-end
modules visual aspects directly while developing, without having an extra step for that.
A raw base for writing back-end modules @Intelisis G4.
> npm install %module_name% --save
Klass = require '%module_name%'
klassInstance = new Klass
Description of fn1
Description of fn2
> npm install
> grunt
FAQs
> [Yeoman](http://yeoman.io) generator that scaffolds out the module structure
We found that generator-g4-module 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.