
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ngrx-store-cli
Advanced tools
A schematic for Angular that simplifies the creation of NgRx store slices — including actions, reducers, selectors, and automatic integration with your app-state.ts.
app-state.ts filenpm install ngrx-store-cli --save-dev
Generate a new store slice using command:
ng generate ngrx-store-cli:store feature-name --actions="actionOne,actionTwo" -a --path=your/path -s
ng g ngrx-store-cli:store user --actions="load,loadSuccess" -a --path=src/app/store -s
| Option | Alias | Required | Description |
|---|---|---|---|
--name | ✅ | Name of the feature or slice | |
--actions | ✅ | Comma-separated list of action names to generate | |
--app-state | -a | ❌ | Add this flag to auto-generate and integrate with app-state.ts |
--separate-files | -s | ❌ | Add this flag to generate separate folders for actions, reducers, etc. |
--path | ❌ | Target path where files will be generated (default: src/app/store) |
--separate-files)src/app/store/user/
├── user.actions.ts
├── user.reducer.ts
├── user.selectors.ts
--separate-files (-s)src/app/store/
├── actions/
│ └── user.actions.ts
├── reducers/
│ └── user.reducer.ts
├── selectors/
│ └── user.selectors.ts
When --app-state(-a) is passed, the schematic:
app-state.ts if it doesn't existimport { ActionReducerMap } from '@ngrx/store';
import { userReducer, UserState } from './user/user.reducer';
export interface AppState {
user: UserState;
}
export const reducers: ActionReducerMap<AppState> = {
user: userReducer
};
You can pass both --app-state(-a) and --separate-files(-s) to fully customize your state structure.
MIT
PRs welcome!
FAQs
A schematic to generate NgRx store slices
We found that ngrx-store-cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.