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.
generator-license
Advanced tools
Generate LICENSE file for your project using Yeoman.
yo license
npm install -g yo
npm install -g generator-license
yo license
, enter your full name and choose a licenseThe generator will generate the LICENSE
file and fill the license
field of the package.json
.
generator-license
can be easily embedded into your own generator using Yeoman composability.
First, install generator-license
as a dependency of your own generator.
npm install --save generator-license
Then call it from your generator.
this.composeWith(require.resolve('generator-license'), {
name: 'John Doe', // (optional) Owner's name
email: 'john.doe@example.com', // (optional) Owner's email
website: 'https://example.com', // (optional) Owner's website
year: '1945', // (optional) License year (defaults to current year)
licensePrompt: 'Which license do you want to use?', // (optional) customize license prompt text
defaultLicense: 'MIT', // (optional) Select a default license
license: 'MIT', // (optional) Select a license, so no license prompt will happen, in case you want to handle it outside of this generator
});
All the options are optional; the generator will prompt for answers when information is not provided.
For Creative Commons Licenses (useful for media files, documentation and other creative works) you can use generator-license-cc.
FAQs
Generate LICENSE file for your project using Yeoman.
The npm package generator-license receives a total of 1,482 weekly downloads. As such, generator-license popularity was classified as popular.
We found that generator-license demonstrated a healthy version release cadence and project activity because the last version was released less than 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.