{"library":"amfe-flexible","type":"library","category":null,"description":"amfe-flexible is a JavaScript library designed to facilitate the creation of flexible web pages on mobile platforms by dynamically adjusting `rem` units based on the viewport width. As of version 2.2.1, it provides a script that modifies the `<html>` element's `font-size` to scale `rem` values, aiming to achieve a consistent layout across various mobile screen sizes. The package appears to be largely unmaintained, with its last significant update several years ago (around 2017), suggesting an abandoned or maintenance-only status. It predates many modern CSS solutions like `vw`/`vh` units, `min()/max()/clamp()` functions, and more sophisticated PostCSS plugins that handle viewport adaptation purely in CSS without JavaScript runtime intervention. Its primary usage involves directly embedding the script in HTML, often alongside `postcss-adaptive` for build-time unit conversion.","language":"javascript","status":"abandoned","version":"2.2.1","tags":["javascript","lib","amfe","flexible","mobile","css","rem","vw"],"last_verified":"Wed May 27","install":[{"cmd":"npm install amfe-flexible","imports":["<script src=\"./node_modules/amfe-flexible/index.js\"></script>"]},{"cmd":"yarn add amfe-flexible","imports":[]},{"cmd":"pnpm add amfe-flexible","imports":[]}],"homepage":null,"github":"https://github.com/amfe/lib-flexible","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/amfe-flexible","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/amfe-flexible/compatibility"}}