Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusmaso/underscore.pathextend
Underscore helper for extending objects using string paths
https://github.com/mateusmaso/underscore.pathextend
extend-objects javascript pathfinding underscore
Last synced: 11 days ago
JSON representation
Underscore helper for extending objects using string paths
- Host: GitHub
- URL: https://github.com/mateusmaso/underscore.pathextend
- Owner: mateusmaso
- License: mit
- Created: 2014-07-15T03:09:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T02:14:36.000Z (almost 10 years ago)
- Last Synced: 2024-10-20T11:14:14.391Z (16 days ago)
- Topics: extend-objects, javascript, pathfinding, underscore
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
underscore.pathextend [![Build Status](https://travis-ci.org/mateusmaso/underscore.pathextend.svg?branch=master)](https://travis-ci.org/mateusmaso/underscore.pathextend)
=====================This library is an extension for Underscore which allows extending objects using string paths.
## Features
* Extend using paths as keys.
## Dependencies
* underscore.js (>= 1.5.0)
* underscore.path (>= 0.1.4)## Node
```javascript
var _ = require('underscore');
_.mixin(require('underscore.pathextend'));
```## Examples
```javascript
var object = {foo: {bar: 123}};
_.pathExtend(object, {"foo.bar": 312});
```## License
Copyright (c) 2014 Mateus Maso. Released under an MIT license.