What’s the difference between tilde(~) and caret(^) in package.json?

See the NPM docs and semver docs: ~version “Approximately equivalent to version”, will update you to all future patch versions, without incrementing the minor version. ~1.2.3 will use releases from 1.2.3 to <1.3.0. ^version “Compatible with version”, will update you to all future minor/patch versions, without incrementing the major version. ^2.3.4 will use releases from … Read more

change directory command cd ..not working in batch file after npm install

npm is on Windows a Windows batch script with file extension .cmd and not an executable which in this case modifies current directory and does not restore it before exiting. I suggest to use instead of cd hui-components-style the command pushd hui-components-style and use instead of cd .. the command popd For details on the … Read more

How to process POST data in Node.js?

If you use Express (high-performance, high-class web development for Node.js), you can do this: HTML: <form method=”post” action=”https://stackoverflow.com/”> <input type=”text” name=”user[name]”> <input type=”text” name=”user[email]”> <input type=”submit” value=”Submit”> </form> API client: fetch(“https://stackoverflow.com/”, { method: ‘POST’, headers: { ‘Content-Type’: ‘application/json’ }, body: JSON.stringify({ user: { name: “John”, email: “john@example.com” } }) }); Node.js: (since Express v4.16.0) // … Read more

Discord.js bots: organizing commands

If you want to better organize your command files, you can separate the commands with categories and then create a folder for each category inside the commands folder. for example: 📂commands ┣ 📂moderation ┗ 📂fun After that you can loop through each of these new folders and load the command files inside them the same … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)