node-containerpattern v1.8.0
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
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
24 days ago
7 months ago
9 months ago
9 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago