Closed vcshox closed 7 years ago
Thanks, let me analyze the voll package dependency and see if it's a lightweight dependency for this function.
@vcshox - I quickly ran browserify on the voll
dependency and it would add about 17KB to the overall yang-js
build. I think it's a bit overkill for this simple parsing case. I'll add an implementation for this using comparse which is the underlying parser that implements the yang-parser
module since that parsing library is already included as part of yang-js
build.
@saintkepha Thank you!
I use voll package to handle the logic expression of the
if-feature
arguments.After extracting all the mentioned features, I reuse the origin code to build my logic control string:
Any feature name appears in the control_string stands for
true
otherwisefalse
I am not sure if you accept other
npm
packages as dependencies.Hope this help.