nessy

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i nessy

Weekly Downloads

18,801

Version

4.0.0

License

MIT

Unpacked Size

6.43 kB

Total Files

5

Last publish

Collaborators

  • coderaiser