Scan your whole stack
From OX Research Newsroom
Are you using @itrocks/property-group?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.3
@itrocks/property-group was last scanned on 28 Nov 2026 at version 0.0.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.0.3 LATEST | 28 Nov 2026 | No rules fired |
Findings for v0.0.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.0.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Group class properties by business topic with a shared class and property decorator.
Requires Node.js 24 or later and TypeScript with experimentalDecorators enabled.
npm i @itrocks/property-group
Constructor parameter properties use
@itrocks/decorator's parameter name resolution.
Compile with declaration: true and keep the generated .d.ts files beside the compiled .js files.
import { Group, groupOf } from '@itrocks/property-group'
@Group('sales', 'sellingPrice', 'salesUnit')
@Group('purchases', 'purchasePrice')
class Article
{
purchasePrice = 0
salesUnit = ''
sellingPrice = 0
@Group('logistics')
weight = 0
constructor(@Group('purchases') public supplier = '')
{
}
}
groupOf(Article)
// {
// logistics: ['weight'],
// purchases: ['supplier', 'purchasePrice'],
// sales: ['sellingPrice', 'salesUnit']
// }
groupOf(Article, 'weight') // 'logistics'
groupOf(new Article(), 'supplier') // 'purchases'
Both forms write class-level group lists and property-level membership. Grouping describes business metadata; it does not render or reorder a user interface itself.
Group<T>(name: string, ...properties: Array<keyof T>)On a class, declares a named group containing the supplied properties. Repeated declarations of the same group append properties without duplicates. Omitting the property list declares an empty group.
On a property, use @Group(name) to add that property to the named group.
This also supports public, protected, private and readonly constructor parameter properties.
The group name is required; there is no implicit group and false is not accepted.
A property belongs to one group. If another declaration assigns it to a different group, the last decorator executed wins and removes the property from its previous group. Empty groups are retained. Within a declaration, property order is preserved; across declarations, additions follow decorator execution order. Stacked class decorators execute bottom to top.
Subclasses inherit group metadata. Decorating a subclass copies the current inherited groups before applying changes, so its declarations do not modify its parent or siblings.
groupOf<T>(target: ObjectOrType<T>): PropertyGroups<T>Returns a record mapping group names to property arrays for a class or instance.
An undecorated class returns {}. The returned record and arrays are copies.
groupOf<T>(target: ObjectOrType<T>, property: keyof T): string | undefinedReturns the property's group name, including inherited membership, or undefined when it has no group.
PropertyGroups<T>The group record type: Record<string, Array<keyof T>>.
npm test
npm pack --dry-run
Tests compile real decorator examples, including constructor parameter properties, before running them.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.