Skip to content

Instantly share code, notes, and snippets.

View Saif-Shines's full-sized avatar
🎵
Music time!

Saif Saif-Shines

🎵
Music time!
View GitHub Profile
@Saif-Shines
Saif-Shines / manifest.json
Created May 16, 2019 06:17
Full page app: location
{
"platform-version": "2.0",
"product": {
"freshdesk": {
"location": {
"full_page_app": {
"url": "template.html",
"icon": "icon.svg"
}
}
@Saif-Shines
Saif-Shines / manifest.json
Created May 16, 2019 08:37
The secure api app
{
"platform-version": "2.0",
"dependencies": {
"request": "2.72.0",
"jsonwebtoken": "8.4.0"
},
"product": {
"freshdesk": {
@Saif-Shines
Saif-Shines / Digging into Node.js.md
Created October 19, 2023 10:00 — forked from i-python-com/Digging into Node.js.md
Node.js - Understanding the hard Parts

Each Node.js process has a set of built-in functionality, accessible through the global process module. The process module need not to be required - it is somewhat literally a wrapper around the currently executing process, and many of the methods it exposes are actually wrappers around calls into some of Nodejs core C libraries.

process.stdout.write("hello world")

The simplest way of retrieving arguments in Nodejs is via the process.argv array. This is a global object that you can use without importing any additional libraries to use it. You simply need to pass arguments to a Node.js application, just like we showed earlier, and these arguments can be accessed within the application via the process.argv array.