
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@abraham/reflection
Advanced tools
Lightweight ES Module implementation of reflect-metadata to work with TypeScript's experimental decorator support.
The main reason for this library is to provide a much smaller implementation that can be included as a module.
reflection
can be loaded with <script type="module" src="..."></script>
reflect-metadata
is ~50Kcore-js/es7/reflect
is ~80K@abraham/reflection
is ~3KRead about how to drop 20K from your production Angular app by switching to this.
npm install @abraham/reflection
import '@abraham/reflection';
Reflect.defineMetadata(metadataKey, metadataValue, target);
You can also import Reflection
:
import { Reflection as Reflect } from '@abraham/reflection';
Reflect.defineMetadata(metadataKey, metadataValue, target);
Reflection does not currently cover the complete API surface of reflect-metadata. The following methods are available:
Reflect.decorate(...);
Reflect.defineMetadata(...);
Reflect.getMetadata(...);
Reflect.hasMetadata(...);
Reflect.getOwnMetadata(...);
Reflect.hasOwnMetadata(...);
Reflect.metadata(...);
FAQs
Lightweight ES Module implementation of reflect-metadata
The npm package @abraham/reflection receives a total of 13,419 weekly downloads. As such, @abraham/reflection popularity was classified as popular.
We found that @abraham/reflection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.