Skip to content

Instantly share code, notes, and snippets.

dbvt10

Block or report user

Report or block dbvt10

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View getJsonResWithRp.js
/**
* with request-promise
* https://gist.github.com/7309150f472e0d8343d07ed03c4d735f
*/
import boom from "@hapi/boom";
import rp from "request-promise";
const getJsonResWithRp = async ({ options }) => {
let resp = null;
View add string to line.md
/**
 * Add string to a specified line to a string
 *
 * https://stackoverflow.com/questions/30764424/insert-string-at-line-number-nodejs
 *
 * @param {*} prevText String
 * @param {*} lineNumber Number
 * @param {*} data String
 */
You can’t perform that action at this time.