Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-object

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-object

An object wrapper for easy data manipulation

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

It's a fork from lzrski/config-object.

The goal is to put all reusable data manipulation logic here and use it internally in config-object.

Install

npm install data-object

Usage

Here's what you can do now:

Data = require 'data-object'
data = new Data
  a:
    b: 1
    c:
      d: 2
      e: 'Elf'
    f: 'Ferret'

data.get 'a/c/e'  # Elf
data.get 'a/c'    # d: 2, e: Elf
data.bonus = 200
data.get 'bonus'  # 200

ATM only most basic get works. More functionality is to come, including:

  • No dependencies (esp. lodash)
  • Drop-in replacement for most of config-object code

I will successively move config-object's features here. See pending test cases for more todo items.

Keywords

FAQs

Package last updated on 15 May 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc