
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@hh.ru/js-module-dependency-extrator
Advanced tools
Плагин парсит js файлы, и извлекает зависимости amd модулей, по call expression "define"
extractModuleDependenciesFromGlob([
файлы для парсинга
], {
saveFileName: - имя файла
saveFilePath: - путь, куда сохранять список зависимостей
saveFileExt: - расширение файла
modulesPath: - путь до корня модулей
template: Функция которая возвращает шаблон контента(string), в качестве аргумента передается массив зависимостей, если не передать контентом сохраненного файла будет JSON представление.',
});
Нужно правильно формировать чанки, потому что webpack-у необходим список полных зависимостей. А анонимный чанк содержит только рутовые компоненты. Иначе нам нужно это делать в ручную.
$ yarn install js-module-dependency-extrator
$ yarn test
const extractStaticValueFromGlob = require('babel-parser-parse-static-trl');
extractStaticValueFromGlob(['/Component/*.jsx'], {
staticPropName: 'customProps',
saveFileName: 'Component',
saveFilePath: 'customPath',
saveFileExt: 'js',
});
FAQs
## Описание
We found that @hh.ru/js-module-dependency-extrator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.