Node.js v4.x HTTP Server One Liner
One liner to create a Node.js HTTP server:
|
|
Also see the previous one liners for older Node.js versions.
One liner to create a Node.js HTTP server:
|
|
Also see the previous one liners for older Node.js versions.
Starter for the most common usage.
Create a MD5 hex hash:
|
|
Create a SHA256 base64 hash:
|
|
Calculating the digest varies with encoding:
|
|
Both hex
and base64
are commonly used ones.
Needs an input_encoding
when update data, otherwise there will be different results:
|
|
Don’t assume ASCII.
Parameter data
must be a string or buffer, otherwise there will be an error:
|
|
Google Cloud Datastore dataset starter, part of a starter collection:
|
|
One liner to create a Node.js HTTP server:
|
|
Print out the process ID instead:
|
|
This is useful with the worker process when implementing the cluster module.
A changelog starter to be consistent with my coding style:
|
|
Google Cloud Pub/Sub starters/examples/references for Node.js gcloud version v0.15.x.
Usage:
|
|