dot-access
Access object properties using dot notation.
Last updated 11 years ago by nthtran .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dot-access 
SYNC missed versions from official npm registry.

dot-access

Access object properties using dot notation.

var dotAccess = require('dot-access');

var user = { 
  fullname: { 
    first: 'Joe', 
    last: 'M' 
  } 
};

// get
dotAccess.get(user, 'fullname.first'); // 'Joe'

// or set
dotAccess.set(user, 'fullname.last', 'T'); // 'T'

Installation

Install with component(1):

$ component install nthtran/dot-access

API

License

MIT

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

6 Versions

  • 1.0.0                                ...           11 years ago
  • 0.0.5                                ...           11 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |