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

node-containerpattern

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-containerpattern

A 'Container pattern' object for a clean global use of data.

  • 1.7.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by21.43%
Maintainers
1
Weekly downloads
 
Created
Source

node-containerpattern

A 'Container pattern' object for a clean global use of data. Basicaly, it extends Map object with lot of controls, recursive methods and documentation

Build status Coverage status Dependency status Dev dependency status Issues Pull requests

Installation

$ npm install node-containerpattern

Features

  • Remember data by there choosen keys
  • use optional skeleton to ensure data formats
  • Access to the data easily and recursively
  • Check recursively data by the key and the value
  • Manipule the data : set, get, has, delete, ...
  • Easily create documenation

Doc

Inheritance

check the official 'Map' object documentation

Content

check the TypeScript definition file

Notes

  • if the skeleton is an 'array' or an 'object', and value data is a string, JSON.parse is apply before throw any error
  • if the skeleton is an 'color', 'email', 'ipv4', 'ipv6', 'url', value must be a string. it can be empty, but must be a valid address if not

Examples

check the TypeScript compilation tests

Tests

$ npm run-script tests

License

ISC

Keywords

FAQs

Package last updated on 05 Oct 2023

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