Why should vue front-end projects use Nodejs?

1. Traditional JavaScript Traditional js runs on the browser, because the browser kernel is divided into two parts: Rendering engine-renders HTML and CSS, JavaScript engine-responsible for running JavaScript With the development of technology, the JavaScript engine used by Chrome is V8, which is very fast and has good performance. At the same time, Node.js, developed […]

NodeJS crawls design pictures on Ink Knife

Background The designer shared a prototype of the ink knife, but it was given read-only permission and the materials could not be downloaded. During development, I wanted to download an animated picture inside, and found the image address in the page structure through the browser’s F12 tool. However, after direct access by the browser, it […]

Implement multi-part upload, resume upload, and instant upload (JS+NodeJS) (TypeScript)

1. Introduction and effects Uploading files is a very common operation, but when the file is large, the upload will take a very long time, and the upload operation will be uncertain. If the connection is accidentally disconnected, the file It will need to be uploaded again, resulting in wasting time and network resources. Therefore, […]

HarmonyOS development: NodeJs script implements component-based dynamic switching

Foreword In the last article, we used NodeJs script to complete the componentized operation of the HarmonyOS project. However, since the script was developed based on the 4.0.0.400 version of DevEco Studio, there may be some differences in the modification of the configuration file. So what should we do if we encounter this situation? One […]

Several ways to process images in nodejs, using sharp, jimp, and webconvert

Use sharp Sharp is a fast and efficient Node.js image processing library that supports image format conversion, size adjustment, compression, cropping, rotation, watermarking and other functions. Here are the basic steps for using the Sharp library: 1. Install Sharp library To install the Sharp library, you can use the npm command: npm install sharp 2. […]

Several ways to implement real-time communication in nodejs

Several ways to implement real-time communication in nodejs In today’s world, real-time communication is crucial. Whether it’s a chat app or live sports updates, real-time communication is necessary to keep users active. Node.js is a popular tool for developing real-time applications because of its speed, scalability, and reliability. In this article, we’ll explore why Node.js […]

Using npm package to implement JS code obfuscation and encryption in NodeJS

Use npm package to implement JS code obfuscation and encryption in NodeJS In the front-end and back-end JS development process, JS code protection (JS code obfuscation and encryption) is a very important part. JShaman is a cloud-based code protection SaaS platform that can obfuscate, encrypt, compress, and other operations on JS code to enhance the […]

nodejs+wasm+rust debug and performance analysis

Article directory background The profile that comes with the v8 engine Linux perf collection Performance analysis of wasm third-party library Compile the debug version of wasm rust program debugging Anomaly model normal model in conclusion optimization Reference Node uses flame graph to optimize CPU explosion – Nuggets [Node.js丨Theme Week] Understanding perf and flame graph-Tencent Cloud […]

NodeJS VM sandbox escape

Article directory basic concept Node executes string as code Method 1 eval Method 2: new Function Nodejs scope vm sandbox escape Some other situations of vm sandbox escape Example Basic concepts What is a sandbox (sandbox)? When we run some programs that may cause harm, we cannot test directly on the real environment of the […]