2.2.0 • Published 7 days ago
yawn-yaml v2.2.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 Bower to install yawn-yaml
package
npm install --save yawn-yaml
yarn add yawm-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
1.7.2
7 days ago
1.8.0
7 days ago
1.7.1
7 days ago
1.7.0
7 days ago
1.6.1
7 days ago
1.5.2
7 days ago
1.6.0
7 days ago
1.5.1
7 days ago
2.2.0
7 days ago
2.1.0
7 days ago
2.0.0
7 days ago
1.5.0
4 years ago
1.4.0
5 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.1
9 years ago