News for hackers. Stuff that matters.

tchetwin

Re:Modern Node.js Patterns on Monday August 04, 2025 @05:13AM (#44783494)
https://github.com/nodejs/node/pull/58517 - I think the `semver-major` and the timing mean that it might not be available until v25, around October
Re:ts-blank-space is a fast type-stripping compiler on Tuesday October 01, 2024 @08:21AM (#41707442)
It does!

Node uses swc to do this. The swc implementation of blank-spacing (implemented here https://github.com/swc-project/swc/pull/9144) was inspired by the author of ts-blank-space here: https://gist.github.com/acutmore/27444a9dbfa515a10b25f0d4707.... It has just taken a little longer to release the original implementation.

Show HN: ts-blank-space – fast TypeScript type-stripper

https://bloomberg.github.io/ts-blank-space/

We've built a new type-stripping compiler for TypeScript source: `ts-blank-space`It's:* 5.6x faster than `tsc` due to zero-codegen* Written in TypeScript* Uses the official TypeScript parser* Accurate/preserved source locations* In used in productionIt uses the same novel approach that inspired Node 22.6.0's `--experimental-strip-types` functionality, released last month

( Read More... | 4 comments | 11 points | on HN )
`npx` is a tool that ships alongside `npm` (alongside `node`) that either finds a local installation or performs a just-in-time download, and then runs the default "bin" entrypoint for the package.

Newer versions of `npx` (last few years) will prompt the user before installing a package. Older versions did not. Note that installing the package can run arbitrary scripts as a side effect with at least the level of permission of the current user, so there is implicit trust required of the author, and the authors of all transitive dependencies.

Re:Apple Weather Issue on Tuesday April 04, 2023 @03:05AM (#35436102)
https://www.apple.com/support/systemstatus/

  Weather - Issue
  Today, 4:00 AM - ongoing
  Some users are affected
  Next-hour precipitation may be unavailable for Alaska due to a data provider outage.
Re:Astro: Ship Less JavaScript on Tuesday June 08, 2021 @05:57PM (#27441480)
Suspect that should be `npm init astro` or `yarn create astro`.

TIL: npm initializers, thanks!

Re:Insights from Adopting TypeScript at Scale on Thursday November 12, 2020 @06:09AM (#25068623)
These rules are currently a not-readily-separable part of our build tooling. To provide earlier feedback for developers we're intending to standardise on an ESLint ruleset that will probably comprise the `no-restricted-syntax` rule: https://eslint.org/docs/rules/no-restricted-syntax