Home

Awesome

The Journalism Library

A collection of TypeScript functions for journalistic projects.

The library is available on JSR with its documentation.

The library is maintained by Nael Shiab, computational journalist and senior data producer for CBC News.

You might also find the simple-data-analysis library and Code Like a Journalist interesting.

To install the library, you can use the following commands:

# DENO
deno install jsr:@nshiab/journalism

# NODE.JS
npx jsr add journalism

# BUN
npx jsr add journalism

If you run your code in a browser, use the web entry point:

import { formatNumber } from "@nshiab/journalism/web";

If you wish to contribute, please check the guidelines.