Détail du package

nessy

coderaiser50.2kMIT5.3.0

set value in nested object

json, object, value, nested

readme

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

changelog

2025.03.06, v5.3.0

feature:

  • 202bcd1 nessy: splitter at the beginning

2025.02.16, v5.2.0

feature:

  • 6db9969 nessy: selector: numbers start not from zero

2025.02.14, v5.1.0

feature:

  • 901c36c nessy: array: add support

2025.02.14, v5.0.0

feature:

  • b3ee7f2 nessy: drop support of node < 18
  • 51f7a22 nessy: eslint-plugin-n v17.15.1
  • 00270b3 nessy: c8 v10.1.3
  • 929d6f6 nessy: supertape v10.10.0
  • eefff9f nessy: nodemon v3.1.9
  • 4cf467b nessy: madrun v10.2.5
  • 22d95c9 nessy: eslint v9.20.1
  • 602a225 nessy: eslint-plugin-putout v24.1.0
  • 4f61f6d nessy: putout v38.1.8

2020.11.04, v4.0.0

feature:

  • (package) drop support of node < 8

2020.11.04, v3.0.2

fix:

  • (package) engine -> engines

2020.11.04, v3.0.1

fix:

  • (nessy) security : prototype pollution (#14)

feature:

  • (package) madrun v7.0.4
  • (package) supertape v2.0.1
  • (package) eslint-plugin-putout v6.0.0
  • (package) putout v11.0.2
  • (package) eslint v7.12.1
  • (package) nyc v15.1.0
  • (package) nodemon v2.0.6

2020.01.05, v3.0.0

feature:

  • (nessy) drop support of legacy
  • (package) babel v7.0.0
  • (package) eslint v5.6.0
  • (package) redrun v7.0.0
  • (package) nyc v12.0.2
  • (package) redrun v6.0.0
  • (package) browserify v16.0.0
  • (package) browserify v15.2.0
  • (package) coveralls v3.0.0
  • (package) babel-preset-env v1.6.0
  • (package) eslint v4.7.1

2017.07.14, v2.1.0

fix:

  • (travis) codestyle -> lint

feature:

  • (nessy) add ability to use custom divider
  • (package) minify v3.0.0
  • (package) nyc v11.0.2
  • (package) browserify v14.0.0
  • (package) nyc v10.0.0
  • (travis) node_js: 6, 7
  • (package) nyc v9.0.1

2016.11.03, v2.0.0

feature:

  • (nessy) es2015-ify

2016.09.19, v1.1.1

fix:

  • (nessy) prevent removing of parent children

feature:

  • (package) scripts: add watch:test

2016.09.16, v1.1.0

feature:

  • (package) scripts: add init
  • (nessy) add ability to overwrite existing properties
  • (package) nyc v8.1.0
  • (package) redrun v5.0.0
  • (package) nyc v7.0.0
  • (package) redrun v4.0.0
  • (package) npm-run-all -> redrun
  • (package) jscs v3.0.1

2016.03.28, v1.0.2

feature:

  • (nessy) some -> forEach
  • (npmignore) add bower.json

2016.03.15, v1.0.1

fix:

  • (package) add minify v2.0.4