
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.
@americanexpress/generator-one-app-module
Advanced tools
yeoman generator for a bare-bones One App
holocron
Module
Assuming you have npx installed (comes with npm
on versions 5.2.0 and above):
npx -p yo -p @americanexpress/generator-one-app-module -- yo @americanexpress/one-app-module
The generator will start up and prompt you with the following questions:
If you'd like to include internationalization in your module without being prompted, you can pass in the --setupInternationalizationByDefault
flag. Your command will look as follows:
yo @americanexpress/one-app-module --setupInternationalizationByDefault
Alternatively, if you choose to compose generator-one-app-module
with another generator, you can pass the setupInternationalizationByDefault
value in an object as the second argument to the Yeoman ComposeWith
function, like so:
const CustomExtension = require.resolve('./path-to-custom-extension');
module.exports = class extends Generator {
initializing() {
this.composeWith(require.resolve('@americanexpress/generator-one-app-module/generators/app'),
{ setupInternationalizationByDefault: true });
this.composeWith(CustomExtension);
}
};
Doing this, you're able to extend the generator-one-app-module
generator, enable internationalization by default, and add additional prompts and logic in your custom extension.
More on composing generators here.
For more information about what happens after bundling your module, read Bundling modules
After making changes to the generator, test your changes locally:
npm install --global yo
npm link
yo @americanexpress/one-app-module
npm unlink
Please see our contributing guide for more details.
FAQs
generator for One App Modules
The npm package @americanexpress/generator-one-app-module receives a total of 0 weekly downloads. As such, @americanexpress/generator-one-app-module popularity was classified as not popular.
We found that @americanexpress/generator-one-app-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
/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.