path-object
access object keys with a path
Last updated 11 years ago by christophwitzko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install path-object 
SYNC missed versions from official npm registry.

path-object

Build Status

Install

$ npm install -S path-object

Example

var PathObject = require('path-object')()

var fileObj = new PathObject()

fileObj.set('path/to/file1', 'file1 content')
fileObj.set('path/to/file2', 'file2 content')
fileObj.set('another/path/to/file', 'another file content')

console.log('dump:', fileObj.dump())
console.log('dump with scope:', fileObj.dump('path'))

console.log('get by path:', fileObj.get('another/path/to/file'))

Licence

The MIT License (MIT)

Copyright © 2015 Christoph Witzko

Current Tags

  • 2.3.0                                ...           latest (11 years ago)

7 Versions

  • 2.3.0                                ...           11 years ago
  • 2.2.0                                ...           11 years ago
  • 2.1.1                                ...           11 years ago
  • 2.1.0                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |