
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
component-generate
Advanced tools
Create a file based on a template and add it to component.json
Create a file based on a template and add it to component.json
.
npm install -g component-generate
$ component generate foo.js
It creates the file foo.js
based on the JavaScript default template. It also add the reference to the component.json
file.
{
...
"scripts": [
"foo.js"
]
}
-t
or --template
You can specify the template you want to use. The templates list is available here.
$ component generate index.js -t templateName
If you want to add a new template, you can add it in template/[extension]/[templateName].tpl
and make a PR. Templates are rendered using underscore.
In a future version, we will be able to use local templates. We need to find the simplest way to do it (see issue).
-p
or --params
Parameters that will be used by the template.
$ component generate index.js -t exports -p name:HomePage
Will render
'use strict';
module.exports = HomePage;
function HomePage() {
}
Released under the MIT license
FAQs
Create a file based on a template and add it to component.json
We found that component-generate 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.