Skip to content

Instantly share code, notes, and snippets.

View stonedem0's full-sized avatar
💭
im fine

asya stonedem0

💭
im fine
  • London, UK
View GitHub Profile
@stonedem0
stonedem0 / deepCamelcase.txt
Last active October 22, 2019 14:20
deep camel case
function deep(value) {
if (_.isPlainObject(value)) {
const obj = {}
for (let k in value) {
obj[_.camelCase(k)] = deep(value[k])
}
return obj
}
if (_.isArray(value)) {
return value.map(deep)
const needle = require('needle');
JSONStream = require('JSONStream'),
limit = 2000,
perPage = 10,
parser = JSONStream.parse()
let size = 0;
module.exports = function pagination(token) {
const options = {
headers: {