
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.
@datadog/build-plugin
Advanced tools
Track your build performances like never before.
Yarn's build-plugin output.
yarn add @datadog/build-plugin
npm install --save @datadog/build-plugin
Inside your webpack.config.js
.
const { BuildPlugin } = require('@datadog/build-plugin/dist/webpack');
module.exports = {
plugins: [new BuildPlugin()],
};
📝 Note: It is important to have the plugin in the first position in order to report every other plugins.
The Build plugin accepts many options:
disabled
default:
false
Plugin will be disabled and won't track anything.
output
default:
true
If true
, you'll see a top 5 of all metrics tracked by the plugin.
If a path, you'll also save json files at this location:
dependencies.json
: track all dependencies and dependents of your modules.metrics.json
: an array of all the metrics that would be sent to Datadog.stats.json
: the stats
object of webpack.timings.json
: timing data for modules, loaders and plugins.context
default:
webpack.config.context
Used to have a more friendly name for modules. It will remove the context
part of every module names.
datadog
default:
null
An object used to automatically send your build data to Datadog.
The most basic configuration looks like this, consult the full integration documentation for more details.
new BuildPlugin({
datadog: {
apiKey: '<mydatadogkey>',
},
});
git clone git@github.com:DataDog/build-plugin.git
This repository will need Yarn.
brew install yarn
No worry about the version, it's embedded in the repo.
Then you can ensure dependencies are up to date in the repository.
cd build-plugin
yarn
TBD
⚠️ If you're modifying a behavior or adding a new feature, update/add the required tests to your PR.
We're using eslint and prettier to lint and format the code.
It's automatically done at save time when you're using VSCode or you can run a command to do it manually:
yarn format
We're also using TypeScript.
# Simply typecheck your code
yarn typecheck
# Build it
yarn build
# Watch changes
yarn watch
All of this will also be checked in the precommit hook.
We follow a few rules, so we made a simple command to keep it compliant.
# Make the code compliant with our Open Source rules.
yarn oss
It will:
LICENSES-3rdparty.csv
, LICENSE
, NOTICE
and README.md
with the correct license.We try to keep the documentation as up to date as possible.
⚠️ If you're modifying a behavior or adding a new feature, update/add the required documentation to your PR.
FAQs
Unknown package
The npm package @datadog/build-plugin receives a total of 12,727 weekly downloads. As such, @datadog/build-plugin popularity was classified as popular.
We found that @datadog/build-plugin 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
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.