based-on

    0.0.2 • Public • Published

    based-on

    var settings = basedOn({
        key: 'value',
        other: 'value2'
    });
     
    settings();
    // { key: 'value', other: 'value2' }
     
    settings({ test: 'ing' })
    // { key: 'value', other: 'value2', test: 'ing' }
     
    var otherSettings = settings.with({ other: 'true' });
     
    otherSettings();
    // { key: 'value', other: 'true' }
     
    otherSettings({ key: 'test' });
    // { key: 'test', other: 'true' }

    Install

    npm:

    npm install based-on

    Bower:

    bower install based-on

    Or just download from here

    Keywords

    none

    Install

    npm i based-on

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • kimjoar