{"_id":"@crabas0npm/suscipit-aliquid-soluta","name":"@crabas0npm/suscipit-aliquid-soluta","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@crabas0npm/suscipit-aliquid-soluta","version":"1.0.0","description":"[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]","main":"index.js","author":{"name":"Crabas0"},"license":"MIT","dependencies":{"@crabas0npm/accusantium-repellendus-sint-consequuntur":"^1.0.0","@crabas0npm/alias-consequuntur-hic-enim":"^1.0.0","@crabas0npm/aliquid-vitae-magnam-perspiciatis":"^1.0.0","@crabas0npm/aut-cupiditate-quam-dicta":"^1.0.0","@crabas0npm/blanditiis-est-molestias-a":"^1.0.0","@crabas0npm/consectetur-impedit-exercitationem-error":"^1.0.0","@crabas0npm/corporis-rerum-reprehenderit-voluptates":"^1.0.0","@crabas0npm/delectus-dolorem-consectetur-corrupti":"^1.0.0","@crabas0npm/ea-nisi-earum-mollitia":"^1.0.0","@crabas0npm/et-perspiciatis-eius-modi":"^1.0.0","@crabas0npm/expedita-magnam-quia-perferendis":"^1.0.0","@crabas0npm/expedita-optio-recusandae-nesciunt":"^1.0.0","@crabas0npm/expedita-voluptas-corrupti-ullam":"^1.0.0","@crabas0npm/facilis-doloribus-provident-optio":"^1.0.0","@crabas0npm/fugiat-necessitatibus-recusandae-quo":"^1.0.0","@crabas0npm/maxime-sequi-nam-facere":"^1.0.0","@crabas0npm/minus-iure-ipsum-temporibus":"^1.0.0","@crabas0npm/nulla-minima-vero-facere":"^1.0.0","@crabas0npm/odio-exercitationem-ducimus-provident":"^1.0.0","@crabas0npm/officia-nostrum-at-hic":"^1.0.0","@crabas0npm/officiis-labore-tempora-sint":"^1.0.0","@crabas0npm/omnis-neque-asperiores-rerum":"^1.0.0","@crabas0npm/optio-sequi-optio-quidem":"^1.0.0","@crabas0npm/porro-voluptatem-consectetur-beatae":"^1.0.0","@crabas0npm/possimus-sit-repellat-perspiciatis":"^1.0.0","@crabas0npm/quo-dolorem-molestiae-porro":"^1.0.0","@crabas0npm/ratione-nisi-deleniti-provident":"^1.0.0","@crabas0npm/ratione-voluptatibus-quo-sed":"^1.0.0","@crabas0npm/repellendus-illum-cum-fugit":"^1.0.0","@crabas0npm/unde-quos-asperiores-modi":"^1.0.0","@diahkomalasarinpm/praesentium-sint-dolorem":"^1.0.0","@f1stnpm2/adipisci-adipisci-praesentium":"^1.0.0","@wemnyelezxnpm/delectus-repellendus-neque":"^1.0.0"},"keywords":["cli","css nesting","bcrypt","Array.prototype.flatMap","traverse","immutable","input","require","regular expression","touch","watcher","console","Float32Array","postcss","package manager","rm","package","lru","RegExp.prototype.flags","length","modules","Uint16Array","electron","debugger","emit","forms","autoprefixer","color","lazy","patch","chrome","watch","recursive","equality","spawn","utility","styles","String.prototype.trim","operating-system","push","persistent","rm -fr","valid","Float64Array","array","form","walk","Underscore","obj","streams","interrupts","Set","shared","default","utils","react-hooks","api","parent","performance","stable","speed","getintrinsic","URLSearchParams","ArrayBuffer","argparse","pose","defineProperty","read","fs","typedarrays","regexp","ES2015","readablestream","debug","Streams","extension","throttle","slice","chinese","buffer","sameValueZero","values","l10n","apollo","spinners","command","polyfill","glob","concurrency","key","stream","description","getter","flatten","date","shebang","validate","sort","multi-package","ReactiveX","toArray","ES3","airbnb","es2017","directory","stringify","check","var","URL","typed array","redux","mixins","express","character","remove","ast","0","TypedArray","spinner","dataView","xss","a11y","take","linewrap","validation","styling","compiler","Stream","robust","banner","executable","ECMAScript 3","limited","entries","tdd","config","mime","stylesheet","Int8Array","getopt","gestures","configurable","value","call-bound","positive","mobile","eslintconfig","toobject","ES7","functional","weakmap","copy","transpiler","collection.es6","callbind","readable","form-validation","json-schema","option","ES2022","ECMAScript 2020","codes","is","npm","structuredClone","arrays","getPrototypeOf","term","editor","prune","exec","deepcopy","proto","wait","trimRight","eslintplugin","nope","make dir","Array.prototype.includes","ES8","_.extend","ReactiveExtensions","Object.defineProperty","stateless","app","stringifier","Uint32Array","make","safe","RxJS","concatMap","limit","callback","BigUint64Array","windows","preserve-symlinks","names","name","toolkit","chai","bdd","256","isConcatSpreadable","three","io-ts","look-up","less mixins","computed-types","launch","framework","performant","transpile","iterate","es5","validator","setter","lesscss","css less","exe","parents","yup","pretty","waapi","consume","byte","ES2018","find-up","prefix","class-validator","estree","classname","flags","Microsoft","javascript","regular expressions","vest","fullwidth","xterm","const","fast-deep-clone","ArrayBuffer#slice","curl","findup","Array.prototype.contains","ECMAScript 2015","nested css","environment","groupBy","RegExp#flags","AsyncIterator","exit-code","lockfile","fsevents","typeerror","Map","invariant","once","$.extend","mime-db","filter","search","ajax","middleware","es6","trimLeft","ascii","Object.assign","signal","ECMAScript 7","idle","real-time"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/suscipit-aliquid-soluta.git"},"homepage":"https://github.com/crabas0npm/suscipit-aliquid-soluta/#readme","bugs":{"url":"https://github.com/crabas0npm/suscipit-aliquid-soluta/issues"},"packageManager":"yarn@4.1.1","_id":"@crabas0npm/suscipit-aliquid-soluta@1.0.0","gitHead":"578dfbc79e3e4f2b7d3cd08931325b0825cb1036","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-hBZtWzjaW54HMeiBdFyWgJ3OhfWy5ChPQNZW4fZzx43Wj02qCS29SaxWfYZQXLXFNjkIGyO9Q3poHlNrdQqRFg==","shasum":"914efa1b031f8de6db7b888e8e4b0bd2c2f2004a","tarball":"https://registry.npmjs.org/@crabas0npm/suscipit-aliquid-soluta/-/suscipit-aliquid-soluta-1.0.0.tgz","fileCount":10,"unpackedSize":16896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC21ayOfPMPLbhZVgF4FeYVrxzk+Ni7pPSYV7TCcURRAQIhAOz4nIyNkuyjhnePP80iq6LYUDj0YOthnLrKe5EYsqz4"}]},"_npmUser":{"name":"thanhl4861","email":"thanhl4861@gmail.com"},"directories":{},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/suscipit-aliquid-soluta_1.0.0_1714024550880_0.2795485347457851"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-25T05:55:50.734Z","1.0.0":"2024-04-25T05:55:51.043Z","modified":"2024-04-25T05:55:51.417Z"},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"description":"[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]","homepage":"https://github.com/crabas0npm/suscipit-aliquid-soluta/#readme","keywords":["cli","css nesting","bcrypt","Array.prototype.flatMap","traverse","immutable","input","require","regular expression","touch","watcher","console","Float32Array","postcss","package manager","rm","package","lru","RegExp.prototype.flags","length","modules","Uint16Array","electron","debugger","emit","forms","autoprefixer","color","lazy","patch","chrome","watch","recursive","equality","spawn","utility","styles","String.prototype.trim","operating-system","push","persistent","rm -fr","valid","Float64Array","array","form","walk","Underscore","obj","streams","interrupts","Set","shared","default","utils","react-hooks","api","parent","performance","stable","speed","getintrinsic","URLSearchParams","ArrayBuffer","argparse","pose","defineProperty","read","fs","typedarrays","regexp","ES2015","readablestream","debug","Streams","extension","throttle","slice","chinese","buffer","sameValueZero","values","l10n","apollo","spinners","command","polyfill","glob","concurrency","key","stream","description","getter","flatten","date","shebang","validate","sort","multi-package","ReactiveX","toArray","ES3","airbnb","es2017","directory","stringify","check","var","URL","typed array","redux","mixins","express","character","remove","ast","0","TypedArray","spinner","dataView","xss","a11y","take","linewrap","validation","styling","compiler","Stream","robust","banner","executable","ECMAScript 3","limited","entries","tdd","config","mime","stylesheet","Int8Array","getopt","gestures","configurable","value","call-bound","positive","mobile","eslintconfig","toobject","ES7","functional","weakmap","copy","transpiler","collection.es6","callbind","readable","form-validation","json-schema","option","ES2022","ECMAScript 2020","codes","is","npm","structuredClone","arrays","getPrototypeOf","term","editor","prune","exec","deepcopy","proto","wait","trimRight","eslintplugin","nope","make dir","Array.prototype.includes","ES8","_.extend","ReactiveExtensions","Object.defineProperty","stateless","app","stringifier","Uint32Array","make","safe","RxJS","concatMap","limit","callback","BigUint64Array","windows","preserve-symlinks","names","name","toolkit","chai","bdd","256","isConcatSpreadable","three","io-ts","look-up","less mixins","computed-types","launch","framework","performant","transpile","iterate","es5","validator","setter","lesscss","css less","exe","parents","yup","pretty","waapi","consume","byte","ES2018","find-up","prefix","class-validator","estree","classname","flags","Microsoft","javascript","regular expressions","vest","fullwidth","xterm","const","fast-deep-clone","ArrayBuffer#slice","curl","findup","Array.prototype.contains","ECMAScript 2015","nested css","environment","groupBy","RegExp#flags","AsyncIterator","exit-code","lockfile","fsevents","typeerror","Map","invariant","once","$.extend","mime-db","filter","search","ajax","middleware","es6","trimLeft","ascii","Object.assign","signal","ECMAScript 7","idle","real-time"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/suscipit-aliquid-soluta.git"},"author":{"name":"Crabas0"},"bugs":{"url":"https://github.com/crabas0npm/suscipit-aliquid-soluta/issues"},"license":"MIT","readme":"# @crabas0npm/suscipit-aliquid-soluta <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nTraverse and transform objects by visiting every node on a recursive walk.\n\n# examples\n\n## transform negative numbers in-place\n\nnegative.js\n\n````javascript\nvar @crabas0npm/suscipit-aliquid-soluta = require('@crabas0npm/suscipit-aliquid-soluta');\nvar obj = [ 5, 6, -3, [ 7, 8, -2, 1 ], { f : 10, g : -13 } ];\n\n@crabas0npm/suscipit-aliquid-soluta(obj).forEach(function (x) {\n    if (x < 0) this.update(x + 128);\n});\n\nconsole.dir(obj);\n````\n\nOutput:\n\n    [ 5, 6, 125, [ 7, 8, 126, 1 ], { f: 10, g: 115 } ]\n\n## collect leaf nodes\n\nleaves.js\n\n````javascript\nvar @crabas0npm/suscipit-aliquid-soluta = require('@crabas0npm/suscipit-aliquid-soluta');\n\nvar obj = {\n    a : [1,2,3],\n    b : 4,\n    c : [5,6],\n    d : { e : [7,8], f : 9 },\n};\n\nvar leaves = @crabas0npm/suscipit-aliquid-soluta(obj).reduce(function (acc, x) {\n    if (this.isLeaf) acc.push(x);\n    return acc;\n}, []);\n\nconsole.dir(leaves);\n````\n\nOutput:\n\n    [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]\n\n## scrub circular references\n\nscrub.js:\n\n````javascript\nvar @crabas0npm/suscipit-aliquid-soluta = require('@crabas0npm/suscipit-aliquid-soluta');\n\nvar obj = { a : 1, b : 2, c : [ 3, 4 ] };\nobj.c.push(obj);\n\nvar scrubbed = @crabas0npm/suscipit-aliquid-soluta(obj).map(function (x) {\n    if (this.circular) this.remove()\n});\nconsole.dir(scrubbed);\n````\n\noutput:\n\n    { a: 1, b: 2, c: [ 3, 4 ] }\n\n# methods\n\nEach method that takes an `fn` uses the context documented below in the context\nsection.\n\n## .map(fn)\n\nExecute `fn` for each node in the object and return a new object with the\nresults of the walk. To update nodes in the result use `this.update(value)`.\n\n## .forEach(fn)\n\nExecute `fn` for each node in the object but unlike `.map()`, when\n`this.update()` is called it updates the object in-place.\n\n## .reduce(fn, acc)\n\nFor each node in the object, perform a\n[left-fold](http://en.wikipedia.org/wiki/Fold_(higher-order_function))\nwith the return value of `fn(acc, node)`.\n\nIf `acc` isn't specified, `acc` is set to the root object for the first step\nand the root element is skipped.\n\n## .paths()\n\nReturn an `Array` of every possible non-cyclic path in the object.\nPaths are `Array`s of string keys.\n\n## .nodes()\n\nReturn an `Array` of every node in the object.\n\n## .clone()\n\nCreate a deep clone of the object.\n\n## .get(path)\n\nGet the element at the array `path`.\n\n## .set(path, value)\n\nSet the element at the array `path` to `value`.\n\n## .has(path)\n\nReturn whether the element at the array `path` exists.\n\n# context\n\nEach method that takes a callback has a context (its `this` object) with these\nattributes:\n\n## this.node\n\nThe present node on the recursive walk\n\n## this.path\n\nAn array of string keys from the root to the present node\n\n## this.parent\n\nThe context of the node's parent.\nThis is `undefined` for the root node.\n\n## this.key\n\nThe name of the key of the present node in its parent.\nThis is `undefined` for the root node.\n\n## this.isRoot, this.notRoot\n\nWhether the present node is the root node\n\n## this.isLeaf, this.notLeaf\n\nWhether or not the present node is a leaf node (has no children)\n\n## this.level\n\nDepth of the node within the traversal\n\n## this.circular\n\nIf the node equals one of its parents, the `circular` attribute is set to the\ncontext of that parent and the traversal progresses no deeper.\n\n## this.update(value, stopHere=false)\n\nSet a new value for the present node.\n\nAll the elements in `value` will be recursively @crabas0npm/suscipit-aliquid-solutad unless `stopHere` is\ntrue.\n\n## this.remove(stopHere=false)\n\nRemove the current element from the output. If the node is in an Array it will\nbe spliced off. Otherwise it will be deleted from its parent.\n\n## this.delete(stopHere=false)\n\nDelete the current element from its parent in the output. Calls `delete` even on\nArrays.\n\n## this.before(fn)\n\nCall this function before any of the children are @crabas0npm/suscipit-aliquid-solutad.\n\nYou can assign into `this.keys` here to @crabas0npm/suscipit-aliquid-soluta in a custom order.\n\n## this.after(fn)\n\nCall this function after any of the children are @crabas0npm/suscipit-aliquid-solutad.\n\n## this.pre(fn)\n\nCall this function before each of the children are @crabas0npm/suscipit-aliquid-solutad.\n\n## this.post(fn)\n\nCall this function after each of the children are @crabas0npm/suscipit-aliquid-solutad.\n\n\n# install\n\nUsing [npm](http://npmjs.org) do:\n\n    $ npm install @crabas0npm/suscipit-aliquid-soluta\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/@crabas0npm/suscipit-aliquid-soluta\n[npm-version-svg]: https://versionbadg.es/ljharb/@crabas0npm/suscipit-aliquid-soluta.svg\n[deps-svg]: https://david-dm.org/ljharb/@crabas0npm/suscipit-aliquid-soluta.svg\n[deps-url]: https://david-dm.org/ljharb/@crabas0npm/suscipit-aliquid-soluta\n[dev-deps-svg]: https://david-dm.org/ljharb/@crabas0npm/suscipit-aliquid-soluta/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/@crabas0npm/suscipit-aliquid-soluta#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/@crabas0npm/suscipit-aliquid-soluta.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/@crabas0npm/suscipit-aliquid-soluta.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/@crabas0npm/suscipit-aliquid-soluta.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=@crabas0npm/suscipit-aliquid-soluta\n[codecov-image]: https://codecov.io/gh/ljharb/@crabas0npm/suscipit-aliquid-soluta/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/@crabas0npm/suscipit-aliquid-soluta/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/@crabas0npm/suscipit-aliquid-soluta\n[actions-url]: https://github.com/ljharb/@crabas0npm/suscipit-aliquid-soluta/actions\n","readmeFilename":"README.md"}