Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/examples/dumper.js

Issue 800513006: Added vulcanize under third_party/npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/examples/dumper.js
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/examples/dumper.js b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/examples/dumper.js
new file mode 100644
index 0000000000000000000000000000000000000000..7952b18d29a4d497f921e3e2345c50717e3a61ec
--- /dev/null
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/examples/dumper.js
@@ -0,0 +1,31 @@
+'use strict';
+
+
+var yaml = require('../lib/js-yaml');
+var object = require('./dumper.json');
+
+
+console.log(yaml.dump(object, {
+ flowLevel: 3,
+ styles: {
+ '!!int' : 'hexadecimal',
+ '!!null' : 'camelcase'
+ }
+}));
+
+
+// Output:
+//==============================================================================
+// name: Wizzard
+// level: 0x11
+// sanity: Null
+// inventory:
+// - name: Hat
+// features: [magic, pointed]
+// traits: {}
+// - name: Staff
+// features: []
+// traits: {damage: 0xA}
+// - name: Cloak
+// features: [old]
+// traits: {defence: 0x0, comfort: 0x3}

Powered by Google App Engine
This is Rietveld 408576698