
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
skypager-registry
Advanced tools
A Registry is a queryable directory of functions.
Registries can be used for a variety of purposes, such as dependency injection, asynchronous module loading using something like Webpack's require.ensure
or System.import
functionality, or for building a database of plugins or middlewares that can be dynamically required using different kinds of application logic at runtime.
npm install skypager-registry --save
import registry from 'skypager-registry'
import glob from 'glob'
import { dirname, basename } from 'path'
const componentIndexes = (cwd, componentFolder='components') => {
const filePaths = glob.sync(`${componentFolder}/*/index.js`, { cwd })
return filePaths.map((path) => (
[basename(dirname(path)), path]
)
}
const components = registry({}, 'components')
componentIndexes.forEach([componentId, modulePath] => {
components.register(componentId, () => {
const component = require(modulePath)
return component.default ? component.default : component
})
})
For people familiar with react-native
for example, there is the AppRegistry
import React, { Component } from 'react'
import { AppRegistry, View } from 'react-native'
const MyScreen = (props = {}) => (
<View>Hello World</View>
)
AppRegistry.registerComponent('MyScreen', () => MyScreen)
FAQs
create queryable directories of lazy loading functions
The npm package skypager-registry receives a total of 186 weekly downloads. As such, skypager-registry popularity was classified as not popular.
We found that skypager-registry 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
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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.