trungnam.hashnode.devJavascript: How to read and get data from an excel fileFor myself, I'm using this function async function readDataFromExcel(file: File): Promise<any[]> { return new Promise((resolve, reject) => { const fileReader = new FileReader(); fileReader.onload = () => { const arrayBuffer = <any> fi...Aug 7, 2021·1 min read
trungnam.hashnode.devJavascript: Reset image's orientation before uploadingThe images can have 8 orientation types like the image below and we have reset its orientation, I mean to convert to be like the first image. First, I will get the current image's orientation export async function getOrientation(file: File): Promise...Aug 3, 2021·2 min read
trungnam.hashnode.devPDFMake: Getting started with PDF printing in pure javascripthey, have you been generated and printed a pdf file in javascript? I found some libraries which support both client and server side. I tried to use and test to get a library that is suitable for me, I mean my project's requirement, and finally, I cho...Jul 31, 2021·3 min read
trungnam.hashnode.devOne of the best practices about Git-flowCurrently, I'm working on a co-system project, which is using to manage customers, products, etc. Although Web Front-end team size is two, using Git-flow is necessary and important. Init git flow init -d Just using default configurations: Branch is...Jul 30, 2021·2 min read
trungnam.hashnode.dev5 things help front end web developers be betterUsually use debounce Imagine when we implement some module like autocomplete or click to do something, everywhen user press any single key, we will request an API and render a lot of blocks and if there are about 10 - 20 blocks these will be ok, but ...Jul 28, 2021·1 min read