Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yaml-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaml-loader - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

index.js

@@ -6,3 +6,3 @@ var yaml = require('js-yaml');

var res = yaml.safeLoad(source);
return JSON.stringify(res, undefined, '\t');
return 'module.exports = ' + JSON.stringify(res, undefined, '\t');
};
{
"name": "yaml-loader",
"version": "0.2.0",
"version": "0.3.0",
"description": "YAML loader for webpack (converts YAML to JSON)",

@@ -5,0 +5,0 @@ "main": "index.js",

# yaml-loader for webpack
YAML loader for [webpack](http://webpack.github.io/). Converts YAML to JSON. You should chain it with [json-loader](https://github.com/webpack/json-loader).
YAML loader for [webpack](http://webpack.github.io/). Converts YAML to JSON.

@@ -14,3 +14,3 @@ ## Installation

``` javascript
var json = require("json!yaml!./file.yml");
var json = require("yaml!./file.yml");
// => returns file.yml as javascript object

@@ -17,0 +17,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc