BigFont Blog
  • Home
  • About
  • Bibliography (Work)

nodejs

A collection of 3 posts

When using TypeScript and streams in NodeJS, use the stream.Stream type until there is reason to use a wider type.
typescript

When using TypeScript and streams in NodeJS, use the stream.Stream type until there is reason to use a wider type.

It's easy to build a big ball of mud when working with technology we do not understand. Two years into a project, we found ourselves converting among typed arrays, streams, and buffers, without

  • Shaun Luttin
    Shaun Luttin
1 min read
import m = require("m") vs import * as m from "m"
nodejs

import m = require("m") vs import * as m from "m"

Image by Varsha Y S (Own work) [CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)], via Wikimedia Commons If you think you understand quantum mechanics, you don't understand quantum mechanics.

  • Shaun Luttin
    Shaun Luttin
2 min read
nodejs

Copy to clipboard from NodeJS

const output = "some string"; require("child_process").spawn("clip").stdin.end(output);

  • Shaun Luttin
    Shaun Luttin
1 min read
BigFont Blog © 2021
Latest Posts Ghost