Natural Performance Manager

    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
     

    Keywords

    none

    Install

    npm i yml-in-place

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • finnpauls