Socket
Book a DemoInstallSign in
Socket

rget

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rget

Access your properties by string. Recursively!

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

rget

Copyright (C) 2011 by Maciej Małecki
MIT License (see LICENSE file)

Access your properties by string. Recursively!

Usage

var rget = require('rget');

var obj = {
  user: {
    name: 'Fred',
    preferences: {
      coffee: 'black'
    }
  }
};

rget(obj, 'user.preferences.coffee'); // => 'black'

//
// It also supports custom separators.
//
rget(obj, 'user:preferences:coffee', ':'); // => 'black'

Installation

npm install rget

FAQs

Package last updated on 09 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts