All Projects β†’ doowb β†’ expand-hash

doowb / expand-hash

Licence: MIT license
Recursively expands property keys with dot-notation into objects.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to expand-hash

stringify-keys
Build an array of key paths from an object.
Stars: ✭ 18 (-28%)
Mutual labels:  object, objects, dot-notation, keys, expand
get
🚚 A really small and type-safe (requires TypeScript >= 4.1.3) function, that gets a nested value from an object using a path string (like "a.b[0].d"). If value is 'undefined' or unreachable returns the placeholder instead.
Stars: ✭ 13 (-48%)
Mutual labels:  object, nested-objects, dot-notation
rename-keys
Modify/rename the keys of the own enumerable properties of an object.
Stars: ✭ 28 (+12%)
Mutual labels:  object, keys
invokable
Objects are functions! Treat any Object or Class as a Proc (like Enumerable but for Procs).
Stars: ✭ 40 (+60%)
Mutual labels:  hash, objects
object-keys
Object.keys shim
Stars: ✭ 41 (+64%)
Mutual labels:  object, keys
glob-object
Filter an object using glob patterns and dot notation.
Stars: ✭ 25 (+0%)
Mutual labels:  object, dot-notation
has-value
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Stars: ✭ 27 (+8%)
Mutual labels:  object, dot-notation
omit-empty
Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you would expect with `compact` for arrays.
Stars: ✭ 71 (+184%)
Mutual labels:  object, keys
arrayer
Array manipulation. Get, set & delete keys with dot notation, also prepares an array to be put in a file (php array or json).
Stars: ✭ 14 (-44%)
Mutual labels:  dot-notation
is-string
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Stars: ✭ 17 (-32%)
Mutual labels:  object
harmony-ecs
A small archetypal ECS focused on compatibility and performance
Stars: ✭ 33 (+32%)
Mutual labels:  object
objbrowser
GUI for Python object introspection
Stars: ✭ 111 (+344%)
Mutual labels:  objects
metrohash-rs
Rust MetroHash
Stars: ✭ 45 (+80%)
Mutual labels:  hash
go-checksum
Simple tool to calc Golang module checksum of go.mod and module dir.
Stars: ✭ 45 (+80%)
Mutual labels:  hash
object-book
Study Object book Content Repository / 쑰영호 λ‹˜μ˜ 였브젝트 책을 ν•™μŠ΅ν•˜κ³  μ •λ¦¬ν•œ Repoμž…λ‹ˆλ‹€.
Stars: ✭ 30 (+20%)
Mutual labels:  object
hashseq
A simple proof of work, mainly designed to mitigate DDoS attacks.
Stars: ✭ 20 (-20%)
Mutual labels:  hash
javascript-easy-object
Now easily access or modify an object in javascript with javascript-easy-object.
Stars: ✭ 13 (-48%)
Mutual labels:  object
ECS-CommunityEdition
ECS Community Edition "Free & Frictionless"
Stars: ✭ 125 (+400%)
Mutual labels:  object
Stringfication
πŸ”¨ Make all objects to String!
Stars: ✭ 33 (+32%)
Mutual labels:  object
ngx http hmac secure link module
HMAC Secure Link module for NGINX.
Stars: ✭ 47 (+88%)
Mutual labels:  hash

expand-hash NPM version NPM monthly downloads NPM total downloads Linux Build Status

Recursively expands property keys with dot-notation into objects.

Please consider following this project's author, Brian Woodward, and consider starring the project to show your ❀️ and support.

Install

Install with npm:

$ npm install --save expand-hash

Usage

const expand = require('expand-hash');
const obj = {
  'foo.bar.bar': 'some value',
  'foo.qux': 'another value',
  fez: true
};

console.log(expand(obj));
// {
//   foo: { bar: { bar: 'some value' }, qux: 'another value' },
//   fez: true
// }

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Related projects

Contributors

Commits Contributor
19 doowb
8 jonschlinkert
1 cconrad

Author

Brian Woodward

License

Copyright Β© 2018, Brian Woodward. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on May 15, 2018.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].