The `font-family-papandreou` package provides a lightweight utility for parsing and stringifying CSS `font-family` property values. It converts a CSS font-family string (e.g., `"Helvetica Neue", Helvetica, sans-serif`) into an array of individual font names and vice-versa. The package is currently at version `0.2.0-patch2` and has been unmaintained for several years, with its last publish occurring over six years ago and last code commit in 2017. Its simplicity stems from having zero external runtime dependencies, making it a self-contained solution. However, due to its age and lack of active development, it primarily supports CommonJS modules and does not offer native TypeScript declarations or ESM compatibility, which are standard in modern JavaScript ecosystems. While functional for its niche, developers should be aware of its abandoned status and consider more contemporary alternatives for new projects.
npm install font-family-papandreouVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to parse a CSS `font-family` string into an array and stringify an array back into a CSS `font-family` value using CommonJS `require`.
Consider migrating to a more actively maintained library for CSS parsing or implementing custom parsing logic.
Ensure your project or file uses CommonJS `require()` syntax. For ESM projects, you might need to use a bundler that transpiles CJS, or wrap the module in a CJS loader function, or switch to an ESM-compatible alternative.
Always use `require('font-family')` to import the module after installing `font-family-papandreou`.Create a `font-family.d.ts` file in your project or install `@types/font-family` if it existed (which it doesn't). Alternatively, use `// @ts-ignore` or cast types manually, but prefer migration to a typed library.
This package is CJS-only. Convert your file to use CJS or migrate to an ESM-compatible parsing library. If you must use it in ESM, ensure your bundler handles CJS interoperability correctly.
Ensure you are using `const { parse, stringify } = require('font-family');` after installing `font-family-papandreou`. Do not use `require('font-family-papandreou')` or ESM `import`.No dependency data recorded yet.