|
|
- {
- "_args": [
- [
- "set-value@^2.0.0",
- "/home/herrhase/Workspace/tentakelfabrik/tiny-components/tiny-consent/node_modules/cache-base"
- ]
- ],
- "_from": "set-value@>=2.0.0 <3.0.0",
- "_hasShrinkwrap": false,
- "_id": "set-value@2.0.1",
- "_inCache": true,
- "_installable": true,
- "_location": "/set-value",
- "_nodeVersion": "10.15.2",
- "_npmOperationalInternal": {
- "host": "s3://npm-registry-packages",
- "tmp": "tmp/set-value_2.0.1_1561410377747_0.04630798063835684"
- },
- "_npmUser": {
- "email": "brian.woodward@gmail.com",
- "name": "doowb"
- },
- "_npmVersion": "6.9.0",
- "_phantomChildren": {},
- "_requested": {
- "name": "set-value",
- "raw": "set-value@^2.0.0",
- "rawSpec": "^2.0.0",
- "scope": null,
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/cache-base",
- "/union-value"
- ],
- "_resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz",
- "_shasum": "a18d40530e6f07de4228c7defe4227af8cad005b",
- "_shrinkwrap": null,
- "_spec": "set-value@^2.0.0",
- "_where": "/home/herrhase/Workspace/tentakelfabrik/tiny-components/tiny-consent/node_modules/cache-base",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/set-value/issues"
- },
- "contributors": [
- {
- "name": "Jon Schlinkert",
- "url": "http://twitter.com/jonschlinkert"
- },
- {
- "url": "https://github.com/wtgtybhertgeghgtwtg"
- },
- {
- "name": "Vadim Demedes",
- "url": "https://vadimdemedes.com"
- }
- ],
- "dependencies": {
- "extend-shallow": "^2.0.1",
- "is-extendable": "^0.1.1",
- "is-plain-object": "^2.0.3",
- "split-string": "^3.0.1"
- },
- "description": "Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.",
- "devDependencies": {
- "gulp-format-md": "^0.1.12",
- "mocha": "^3.4.2"
- },
- "directories": {},
- "dist": {
- "fileCount": 4,
- "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==",
- "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdETtKCRA9TVsSAnZWagAAOwQP/RXKTdAMJgGay6gW0Gcq\nsIHSR1mvwoYfCkAswFLyPVyxToicUitgytwX4M88eTLOZY42B99z0L15kEWS\nqxDOuo9RpOWu9NZhk0OpD3bhjgiAq32uDi/E5XinVqdFezZJVH25DntVcSdJ\nLyuV/H5TJFpKNrlI8VzL8+mGHNXfzHIzlCSvnzEJGEEBGOoo8jbcprLxHWXB\naSgCYf8V/9T0iM0NS3EpRhXy7wUPSSL+R6PUvcMjCmJ0fvW39i/CERx0ZMRp\nUyjTlyBXV3ONDy3Dfb7f20Ty0U/VvJn3WKLDcAEUmUrZ2VEpqwH7XtwwGCQE\nEeXAEUBz2SrK2XamCS3lw46fOVrZN5Qwt5UseNJelIPyABCIk2xzNTqmob+i\nWXijOz2y7EEMZUjgWiNckTai7+5p+WlejvsVA7brr4FHmh62kvyTbSSBVwKD\nHKmERXcnb9YIuwxzDdC/nfnV/sq+RMBkoumGw53CX0IOtOJV4ENNdfGRBe5E\nbRy3E3Ut3ydu9SbtwKuZPEasYyrscnw4Go/3bGNUxoFPWJ4TpWPfoAYfqaJw\nCZn+7fibRuyGYUZ+EdOp6TsMjh3vLWBfaXZbvR4eEnIkjEl3NomAQ2J+JvwY\nlVQxQbqFSYv/u0La08+9AB3CtagJJNc5Nk5uWJxLC08ywP3sxwOE/y3Yod0x\nOBB+\r\n=JrGJ\r\n-----END PGP SIGNATURE-----\r\n",
- "shasum": "a18d40530e6f07de4228c7defe4227af8cad005b",
- "tarball": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz",
- "unpackedSize": 10322
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "gitHead": "bb0f0382f7d7637f3de1bba52d1b4abdbbbde4d4",
- "homepage": "https://github.com/jonschlinkert/set-value",
- "keywords": [
- "get",
- "has",
- "hasown",
- "key",
- "keys",
- "nested",
- "notation",
- "object",
- "prop",
- "properties",
- "property",
- "props",
- "set",
- "value",
- "values"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "doowb",
- "email": "brian.woodward@gmail.com"
- },
- {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- }
- ],
- "name": "set-value",
- "optionalDependencies": {},
- "readme": "# set-value [![NPM version](https://img.shields.io/npm/v/set-value.svg?style=flat)](https://www.npmjs.com/package/set-value) [![NPM monthly downloads](https://img.shields.io/npm/dm/set-value.svg?style=flat)](https://npmjs.org/package/set-value) [![NPM total downloads](https://img.shields.io/npm/dt/set-value.svg?style=flat)](https://npmjs.org/package/set-value) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/set-value.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/set-value)\n\n> Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save set-value\n```\n\n## Usage\n\n```js\nvar set = require('set-value');\nset(object, prop, value);\n```\n\n### Params\n\n* `object` **{object}**: The object to set `value` on\n* `prop` **{string}**: The property to set. Dot-notation may be used.\n* `value` **{any}**: The value to set on `object[prop]`\n\n## Examples\n\nUpdates and returns the given object:\n\n```js\nvar obj = {};\nset(obj, 'a.b.c', 'd');\nconsole.log(obj);\n//=> { a: { b: { c: 'd' } } }\n```\n\n### Escaping\n\n**Escaping with backslashes**\n\nPrevent set-value from splitting on a dot by prefixing it with backslashes:\n\n```js\nconsole.log(set({}, 'a\\\\.b.c', 'd'));\n//=> { 'a.b': { c: 'd' } }\n\nconsole.log(set({}, 'a\\\\.b\\\\.c', 'd'));\n//=> { 'a.b.c': 'd' }\n```\n\n**Escaping with double-quotes or single-quotes**\n\nWrap double or single quotes around the string, or part of the string, that should not be split by set-value:\n\n```js\nconsole.log(set({}, '\"a.b\".c', 'd'));\n//=> { 'a.b': { c: 'd' } }\n\nconsole.log(set({}, \"'a.b'.c\", \"d\"));\n//=> { 'a.b': { c: 'd' } }\n\nconsole.log(set({}, '\"this/is/a/.file.path\"', 'd'));\n//=> { 'this/is/a/file.path': 'd' }\n```\n\n### Bracket support\n\nset-value does not split inside brackets or braces:\n\n```js\nconsole.log(set({}, '[a.b].c', 'd'));\n//=> { '[a.b]': { c: 'd' } }\n\nconsole.log(set({}, \"(a.b).c\", \"d\"));\n//=> { '(a.b)': { c: 'd' } }\n\nconsole.log(set({}, \"<a.b>.c\", \"d\"));\n//=> { '<a.b>': { c: 'd' } }\n\nconsole.log(set({}, \"{a..b}.c\", \"d\"));\n//=> { '{a..b}': { c: 'd' } }\n```\n\n## History\n\n### v2.0.0\n\n* Adds support for escaping with double or single quotes. See [escaping](#escaping) for examples.\n* Will no longer split inside brackets or braces. See [bracket support](#bracket-support) for examples.\n\nIf there are any regressions please create a [bug report](../../issues/new). Thanks!\n\n## About\n\n### Related projects\n\n* [assign-value](https://www.npmjs.com/package/assign-value): Assign a value or extend a deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/assign-value) | [homepage](https://github.com/jonschlinkert/assign-value \"Assign a value or extend a deeply nested property of an object using object path notation.\")\n* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value \"Use property paths (`a.b.c`) to get a nested value from an object.\")\n* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value \"Returns true if a value exists, false if empty. Works with deeply nested values using object paths.\")\n* [merge-value](https://www.npmjs.com/package/merge-value): Similar to assign-value but deeply merges object values or nested values using object path/dot notation. | [homepage](https://github.com/jonschlinkert/merge-value \"Similar to assign-value but deeply merges object values or nested values using object path/dot notation.\")\n* [omit-value](https://www.npmjs.com/package/omit-value): Omit properties from an object or deeply nested property of an object using object path… [more](https://github.com/jonsc
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jonschlinkert/set-value.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "verb": {
- "layout": "default",
- "lint": {
- "reflinks": true
- },
- "plugins": [
- "gulp-format-md"
- ],
- "related": {
- "list": [
- "assign-value",
- "get-value",
- "has-value",
- "merge-value",
- "omit-value",
- "set-value",
- "union-value",
- "unset-value"
- ]
- },
- "tasks": [
- "readme"
- ],
- "toc": false
- },
- "version": "2.0.1"
- }
|