Get started with yaml-js CDN
WTFPL licensed
YAML-js is a popular library for parsing and converting YAML data.
Tags:- yaml
- javascript
- parser
Stable version
Copied!
How to start using yaml-js CDN
// Include the YAML library using the CDN link
const YAML = require('yaml-js');
// YAML data as a string
const yamlData = `
greeting: Hello, World!
number: 42
`;
// Parse the YAML string
const parsedData = YAML.load(yamlData);
// Access the parsed data
console.log(parsedData.greeting); // Output: Hello, World!
console.log(parsedData.number); // Output: 42
Copied!
Copied!