
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ngx-convert-to-standalone
Advanced tools
Convert a new Angular project to standalone settings.
This sechmatics will convert angular.json
in Angular, add standalone: true
settings to projects.[project].schematics.@schematics/angular:[component|directive|pipe]
.
By default setting, will convert angular.json
settings like following.
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"demo1": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"inlineTemplate": true,
"inlineStyle": true,
"standalone": true,
"flat": true
},
"@schematics/angular:directive": {
"standalone": true
},
"@schematics/angular:pipe": {
"standalone": true
}
},
}
}
}
ng add ngx-convert-to-standalone
You can skip some settings, for example, --skip-component-inline-template=false
.
ng add ngx-convert-to-standalone --skip-component-inline-template
Then projects.[project].schematics.@schematics/angular:component
will not be changed.
If you have multiple projects, you can specify the project name.
ng add ngx-convert-to-standalone --project=demo1
--project
: Specify the project name. If not set, will set the first project.--skip-component-inline-template
: Skip setting "inlineTemplate": true
in @schematics/angular:component
settings. Default is false
.--skip-component-inline-style
: Skip setting "inlineStyle": true
in @schematics/angular:component
settings. Default is false
.--skip-component-standalone
: Skip setting "standalone": true
in @schematics/angular:component
settings. Default is false
.--skip-component-flat
: Skip setting "flat": true
in @schematics/angular:component
settings. Default is false
.--skip-directive-standalone
: Skip setting "standalone": true
in @schematics/angular:directive
settings. Default is false
.--skip-pipe-standalone
: Skip setting "standalone": true
in @schematics/angular:pipe
settings. Default is false
.MIT
FAQs
Convert a new Angular project to standalone settings
The npm package ngx-convert-to-standalone receives a total of 0 weekly downloads. As such, ngx-convert-to-standalone popularity was classified as not popular.
We found that ngx-convert-to-standalone 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.