Skip to content

satahippy/dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sata-dictionary

Just a dictionary with items that you can override.

Example

var Dictionary = require('sata-dictionary');

var dic = new Dictionary({
	'word1': 'default word1',
	'word2': 'default word2'
});
dic.merge({'word1': 'new word1'});

dic.get('word1'); // -> new word1
dic.get('word2'); // -> default word2

Usage

I use this component with React components.

Just pass in context user specified dictionary for overriding labels, classes, etc.

About

Plain Dictionary Object (fun with node)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published