xtuc/unmarshaller-extra
Create a Babel plugin to preprocess the configuration
Open
#1 opened on May 24, 2017
enhancementhelp wanted
Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Example:
const unmarshaller = {
foo: builder.string('foo')
};
const config = unmarshal(lookupFn, unmarshaller)
Given the input {foo: 'bar'}, would become:
const unmarshaller = {
foo: builder.string('foo')
};
const config = {
foo: 'bar'
}