2.3.0 • Published 11 months ago
yawn-yaml v2.3.0
YAWN YAML 🥱
YAML parser that preserves comments and styling
Usage
import YAWN from 'yawn-yaml';
let str = `
# my comment
value: 1 # the value is here!
`;
let yawn = new YAWN(str);
// update the `json` property
yawn.json = { value: 2 };
// value in `yawn.yaml` is now changed.
// with comments and styling preserved.
console.log(yawn.yaml); // =>
// # my comment
// value: 2 # the value is here!
Installation
Use npm or yarn to install yawn-yaml
package
npm install --save yawn-yaml
yarn add yawn-yaml
Development
To install dependencies run:
yarn install
To run tests continuously and watch for changes
yarn start
To run the test run:
yarn test
License
2.3.0
11 months ago
1.7.2
1 year ago
1.8.0
1 year ago
1.7.1
1 year ago
1.7.0
1 year ago
1.6.1
1 year ago
1.5.2
1 year ago
1.6.0
1 year ago
1.5.1
1 year ago
2.2.0
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.5.0
5 years ago
1.4.0
6 years ago
1.3.4
8 years ago
1.3.3
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago