yml-in-place

1.0.2 • Public • Published

yml-in-place

Build Status Coverage Status js-standard-style semantic-release

NPM

Currently only supports adding a value to a block sequence. But includes utilities to fairly easily also add other features like setting or removing values from maps or sequences.

Usage

const addToSequence = require('yml-in-place').addToSequence
 
const yml = `
 language: node_js
 branches:
   only:
     - master
`
 
const newYml = addToSequence(yml, ['branches', 'only'], 'greenkeeper')
console.log(newYml)
// language: node_js
// branches:
//   only:
//     - master
//     - greenkeeper
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i yml-in-place

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • finnpauls