Skip to content
JS
Package

tosource

toSource converts JavaScript objects back to source

v2.0.0-alpha.3, 31 Jul 2021No license fieldESM + CommonJSTypes: Bundled
$ npm install tosource

Key numbers

As of 25 Sept 2026
Weekly downloads
1.1m
+107% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v2.0.0-alpha.3
GitHub stars
105
14 forks
Open issues / PRs
4 / 5
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5m2mSept 2025Mar 2026Sept 2026High 1.6m (25 Aug 2026)Low 396.7k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,147,367 downloads last week, 5,633,740 in the last month. The 12-month change of +107% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
2.0.0-alpha.3, 31 Jul 20215 years ago
First published
24 Apr 2011
Last push to GitHub
17 Jun 20231,195 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
5
Commits, last 52 weeks
0
Dependents on npm
129

Major versions

  1. v1 first release 1.0.0, 3 Sept 2015
  2. v0 first release 0.1.0, 24 Apr 2011

Recent releases

VersionPublished
1.0.03 Sept 2015
0.1.38 Oct 2014
0.1.214 May 2014
0.1.124 Apr 2011
0.1.024 Apr 2011
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=10
Runtimes
-
Unpacked size (npm)
17 kB
Dependencies (0)
None
npm install tosource
  • jsDelivrhttps://cdn.jsdelivr.net/npm/tosource@2.0.0-alpha.3/
  • unpkghttps://unpkg.com/tosource@2.0.0-alpha.3/
  • esm.shhttps://esm.sh/tosource@2.0.0-alpha.3
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.