A tiny JavaScript package that can parse and stringify space-separated tokens, following the WHATWG spec (for example, for the HTML class attribute). It’s useful as a low-level helper when you need to work with token lists, particularly when working with hast. Exposes `parse` and `stringify` (ESM only, fully typed with TypeScript).
Project status
- The repo appears not actively maintained today, with the latest upstream push and published update on 2022-11-14, which is roughly 3.5+ years before 2026-06-09. The source looks quiet/dormant rather than in active development.
- The update cadence is low and bursty historically (major changes in 2016 to 2022, with long gaps between versions), and there have been no updates since 2.0.2 in 2022.
AI summary generated
Recent updates
2.0.2
Release 2.0.2 focuses on documentation updates and stricter TypeScript typing. The runtime parsing and stringifying logic appears unchanged, but the project’s build, test, and tooling pipeline were significantly modernized.
2.0.1
Release 2.0.1 primarily updates the published documentation and TypeScript/JSDoc typing around the library API. The code changes shown are minimal and appear to be non-runtime, but the README explicitly documents that the package is ESM-only.
2.0.0
Version 2.0.0 switches the package to ESM and adds JSDoc-based TypeScript declaration generation. It also refactors the implementation in a way that removes the old bundling approach.
BreakingFeatures1.1.5
Release 1.1.5 is described in the release notes as a prose refactor. The code diff shows mostly documentation and test wording changes, but it also includes updates to development tooling dependencies and adds GitHub Sponsors funding metadata.
1.1.4
Release 1.1.4 is documented as a small website-facing change: adding more README badges and switching URLs from HTTP to HTTPS. The code diff, however, also includes changes to the build tooling and CI configuration that are not mentioned in the release notes.
Features1.1.3
Release 1.1.3 removes the `trim` npm dependency. The implementation now relies on the native `String.prototype.trim()` method for trimming tokens in `parse` and `stringify`.
1.1.2
Release 1.1.2 mainly refactors formatting of the library source and modernizes the project tooling. The runtime API in index.js appears unchanged, but the repository build, linting, and test workflow was significantly altered.
1.1.1
Release 1.1.1 primarily updates the README by adding a new “Related” section linking to related wooorm packages. However, the code diff also shows multiple development tooling changes (CI Node version, devDependency version bumps, and lint/remark configuration adjustments) that are not mentioned in the release notes.
Features1.1.0
Release 1.1.0 is presented as a documentation and code-style refactor with some cleanup. The actual diff shows mostly maintenance work, but there are also significant, undocumented changes to the project’s development toolchain and CI configuration. The runtime API surface (parse and stringify) appears functionally unchanged.
1.0.0
Release 1.0.0 was published on 2016-02-22. The provided release notes contain only a generic celebration marker and no specific information about features, fixes, breaking changes, or migration steps.