5.3.0 • Published 4 months ago

nessy v5.3.0

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

Nessy NPM version 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?',
    },
});

// even arrays supported
nessy('hello.0', 'world', {});
// returns
({
    hello: ['world'],
});

Related

License

MIT

5.3.0

4 months ago

5.2.0

4 months ago

5.1.0

4 months ago

5.0.0

4 months ago

3.0.2

5 years ago

4.0.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago