nessy
set value in nested object
Last updated 3 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nessy 
SYNC missed versions from official npm registry.

Nessy NPM version Build Status Coverage Status

Set value in nested object.

Install

npm i nessy --save

Hot to use?

import {nessy} form '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

Current Tags

  • 6.0.0                                ...           latest (3 months ago)

16 Versions

  • 6.0.0                                ...           3 months ago
  • 5.3.0                                ...           a year ago
  • 5.2.0                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 1
Dependencies (0)
None
Dev Dependencies (11)

Copyright 2013 - present © cnpmjs.org | Home |