
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
A missing schematic for creating Angular spec.
Works only from @angular/cli@^6.0.0 on.
Angular 7+:
npm i -D ngx-spec@^2.0.0
Angular 6 (only spec
, no specs
support):
npm i -D ngx-spec@^1.0.0
Supported types are
const SupportedTypes = ['component', 'directive', 'guard', 'service', 'pipe'];
Run:
ng g ngx-spec:spec path/my.service
or
ng g ngx-spec:spec path/my.service.ts
Please note that in a standard Angular CLI project the path will start at
src/app
. That's why if you use the file paths then it would be comfortable tocd src/app
first and then safely use the shell autocompletion to produce the proper path.
Batch specs generator. Supports minimatch globs. Does not override existing spec files.
Important: the glob should be passed as a string, otherwise OS tries to intercept it with its glob.
Examples:
ng g ngx-spec:specs 'path/*.service.ts'
ng g ngx-spec:specs '**/*.service.ts'
ng g ngx-spec:specs '**/*'
etc.
Please note that in a standard Angular CLI project the path will start at
src/app
. That's why if you use the file paths then it would be comfortable tocd src/app
first and then safely use the shell autocompletion to produce the proper path.
It could be easier to use the schematic with vscode-angular-schematics extension in Visual Studio Code.
See the story behind on stackoverflow and on Angular CLI github issue.
MIT
FAQs
A missing schematics for creating missing / recreating Angular 6+ specs
We found that ngx-spec 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.