
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
js-yaml-loader
Advanced tools
JS-YAML loader for webpack.
yarn add js-yaml-loader
Webpack documentation on using loaders.
Using the loader inline:
import doc from 'js-yaml-loader!./file.yml';
// => returns a javascript object. see https://github.com/nodeca/js-yaml
Or using the loader via Webpack configuration (recommended):
// webpack.config.js
module: {
rules: [{
test: /\.yaml$/,
use: 'js-yaml-loader',
}]
}
Use safeLoad
instead of load
.
Set safe
to false
to allow unsafe types to load, such as regular
expressions, functions, and undefined
.
The iterator
option passed to safeLoadAll
and loadAll
. Applies iterator
to each
document if specified.
Any other options are passed directly to to safeLoad
or load
as the
options
parameter.
yaml-loader loads YAML files as JSON and is commonly used in conjuction with json-loader.
In contrast, this loader loads YAML files as JavaScript objects using the
un-eval library. This allows YAML value
types otherwise disallowed in JSON such as Infinity
, RegExp
, Function
,
etc. See js-yaml's supported YAML types
FAQs
YAML loader for webpack
We found that js-yaml-loader 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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.