This is encoder file encoder
Am using that package in my angular (ionic) project like this.. which is working fine..
let items: string[] = [\'Apple\',