I hereby claim:
- I am emmiep on github.
- I am emmiep (https://keybase.io/emmiep) on keybase.
- I have a public key ASCkRJLQtisdxr2GGWQcJ8cRAlmx_3BrnhTorOBJXj5ySgo
To claim this, I am signing this object:
const Puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await Puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://example.com'); | |
const header = await page.$('h1'); | |
const rect = await page.evaluate((header) => { | |
const {top, left, bottom, right} = header.getBoundingClientRect(); |
interface VeryStrict { | |
name: string, | |
value: any | |
} | |
type Whatever = { | |
[K in keyof VeryStrict]?: VeryStrict[K] | |
}; | |
const defaults: VeryStrict = { |
#!/usr/bin/env node | |
const FS = require('fs'); | |
const Path = require('path'); | |
function getExecutablePath(name) { | |
const paths = process.env.PATH.split(':'); | |
return paths | |
.map((dir) => Path.join(dir, name)) |
function getFunctionNames(object) { | |
const keys = Object.getOwnPropertyNames(object); | |
const names = keys.filter((name) => object[name] instanceof Function); | |
const prototype = Object.getPrototypeOf(object); | |
return names.concat(prototype && getFunctionNames(prototype) || []); | |
} |
I hereby claim:
To claim this, I am signing this object:
const users = [ | |
'stdlib' | |
]; | |
/** | |
* A basic Hello World function | |
* @param {string} name Who you're saying hello to | |
* @returns {object.http} | |
*/ | |
module.exports = async (name, context) => { |
import babel from 'rollup-plugin-babel'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import replace from 'rollup-plugin-replace'; | |
const env = process.env.NODE_ENV || 'development'; | |
export default { | |
input: [ | |
'src/index.js' |
const FS = require('fs'); | |
const Path = require('path'); | |
const paths = { | |
src: 'src', | |
build: 'build' | |
}; | |
const files = FS.readdirSync(paths.src) | |
.map((name) => Path.resolve(paths.src, name)) |
type PartialOptional<T extends U, U> = | |
{ [P in Extract<keyof T, keyof U>]: T[P] } & | |
{ [P in Exclude<keyof T, keyof U>]?: T[P] }; | |
interface DetailedPerson { | |
name: string | |
age: number | |
isCool: boolean | |
} |
npm_config_version_git_tag | |
npm_config_email | |
npm_config_init_license | |
npm_config_registry | |
npm_config_python | |
npm_package_description | |
npm_package_license | |
npm_execpath | |
npm_config_argv | |
npm_lifecycle_event |