add littleEndian option
Merge branch 'typescript'