Open balupton opened 10 years ago
Actually, considering #14 we will need to support more than just capitalised names. I'm considering the following convention:
NAME => [NAME, ALIASES...]
lodash.flatten => [lodash.flatten, lodashflatten, lodashFlatten, flatten]
query-engine => [query-engine, queryEngine, queryengine]
Problem we will need to avoid is duplicates and overrides. Not sure how to handle this. Options are:
This would allow us to do things like:
require('chainy').create().require('lodash.flatten set log')
.set([1,[2,3],4]).flatten().log() // [1,2,3,4]
Very very cool.
Not sure how we could do this.