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

blindfold

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blindfold

get and set properties using dot syntax strings

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Blindfold

Build Status

Blindfold is a simple utility for getting and setting values on objects to which you may not know the paths (using dot syntax).

Setup

Install using Node Package Manager:

npm install blindfold

Or just include a script tag:

<script src="blindfold.js"></script>

Usage

Use the blindfold function to get or set a value on a context object.

var obj = { foo: { bar: 'baz' } };

// returns 'baz'
blindfold(obj, 'foo.bar');
// sets obj.foo.bar to { baz: 'beep boop' } and returns it
blindfold(obj, 'foo.bar', { baz: 'beep boop' });

FAQs

Package last updated on 25 Jul 2017

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