4.0.0 • Published 4 years ago

nessy v4.0.0

Weekly downloads
2,514
License
MIT
Repository
github
Last release
4 years ago

Nessy License NPM version Dependency Status Build Status Coverage Status

Set value in nested object.

Install

npm i nessy --save

Hot to use?

const nessy = require('nessy');

nessy('hello.world', 'why not?', '.', {
    hello: {
        world: 'could be used in browser as well',
    },
});

// returns
({
    hello: {
        world: 'why not?',
    },
});

nessy('hello*world', 'why not?', '*', {
    hello: {
        world: 'can be used any divider',
    },
});

// returns
({
    hello: {
        world: 'why not?',
    },
});

Related

License

MIT