Skip to content

readme update for completeness #9

@daver208

Description

@daver208

settings.redis.db = 10;
updateConfig(settings, './config/app.yaml', 'production'); //Save 10 to redis.db of the 'production' section
updateConfig({},'./config/app.yaml', 'production'); //Will remove the entire 'production' section

Should Likely be updated to:

var config = require('yaml-config');
var settings = config.readConfig('./config/app.yaml', 'production');
console.log(settings.redis.db); // prints 12
settings.redis.db = 10;
config.updateConfig(settings, './config/app.yaml', 'production'); //Save 10 to redis.db of the 'production' section
config.updateConfig({},'./config/app.yaml', 'production'); //Will remove the entire 'production' section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions