journalism
TypeScript icon, indicating that this package has built-in type declarations

1.18.11 • Public • Published

The Journalism Library

[!WARNING]
Starting with version 1.19.0 (October 2024), the library will no longer be updated on NPM. Instead, it will be available on JSR. This is part of migrating the development of the library to Deno, rather than Node.js. You will still be able to install and use it with Node.js, Bun, and Deno. For more information, check the GitHub repository.

A collection of TypeScript functions for journalistic projects.

The library is available on NPM and JSR.

The documentation can be found on Github and JSR.

To install, run the relevant command in your terminal

# DENO
deno install jsr:@nshiab/journalism

# NODE.JS
npx jsr add journalism

# BUN
npx jsr add journalism

If you wish to contribute, create an issue explaining what you would like to add, create a branch from the issue, make sure to add tests, import your function in index.ts and then create a pull request. To run a specific test, you can use a command like this one npx mocha --require ts-node/register ./test/finance/adjustToInflation.test.ts --timeout 10000 -r dotenv/config. To run all tests, including building the library and generating the docs (in ./test-docs), run npm run all-tests.

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

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.18.115latest

Version History

VersionDownloads (Last 7 Days)Published
1.18.115
1.18.101
1.18.91
1.18.81
1.18.72
1.18.61
1.18.52
1.18.41
1.18.31
1.18.22
1.18.11
1.18.01
1.17.41
1.17.22
1.17.01
1.16.21
1.16.11
1.16.02
1.15.51
1.15.43
1.15.31
1.15.22
1.15.11
1.15.01
1.14.21
1.14.12
1.14.01
1.13.03
1.12.11
1.12.01
1.11.22
1.11.11
1.11.01
1.10.01
1.9.11
1.9.01
1.8.11
1.8.02
1.7.01
1.6.12
1.6.01
1.5.01
1.4.11
1.4.01
1.3.01
1.2.02
1.1.11
1.1.01
1.0.61
1.0.52
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01
0.14.11
0.14.01
0.13.01
0.12.01
0.11.01
0.10.31
0.10.21
0.10.12
0.10.02
0.9.21
0.9.11
0.9.01
0.8.01
0.7.11
0.7.01
0.6.51
0.6.41
0.6.31
0.6.11
0.6.01
0.5.16
0.5.01
0.4.21
0.4.11
0.4.01
0.2.11
0.2.01
0.1.12
0.0.171
0.0.162
0.0.151
0.0.111
0.0.101
0.0.91
0.0.81
0.0.51
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i journalism

Weekly Downloads

124

Version

1.18.11

License

MIT

Unpacked Size

1.24 MB

Total Files

255

Last publish

Collaborators

  • nshiab