
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
== deepopenstruct
DeepOpenStruct is a simple library for creating easy-to-use data structures from complex sets of nested Hashes and Arrays. It is particularly suitable for creating easy-to-use data structures from YAML files, and as such is a useful tool for creating simple reflective API wrappers.
=== Installation
gem install deepopenstruct
=== Usage
require 'rubygems' require 'deepopenstruct'
complex_data = { :name => "Bob Winkle", :age => 65, :jobs => [ {'start_year' => 1980, 'title' => 'Chef'}, {'start_year' => 1985, 'title' => 'Programmer'} ], :attributes => { :birthplace => "Darwin", :year_of_birth => 1945 } }
simple_data = DeepOpenStruct.load(complex_data)
simple_data.name
simple_data.jobs.first.title
simple_data.attributes.birthplace
=== Note on Patches/Pull Requests
=== Author & Credits
Author:: {Aaron Gough}[mailto:aaron@aarongough.com]
Copyright (c) 2010 {Aaron Gough}[http://thingsaaronmade.com/] ({thingsaaronmade.com}[http://thingsaaronmade.com/]), released under the MIT license
FAQs
Unknown package
We found that deepopenstruct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.