{"library":"sugar","type":"library","category":null,"description":"Sugar.js is a comprehensive JavaScript utility library that extends native object prototypes (e.g., String, Number, Array, Date) with additional methods for common operations. It provides functional programming utilities, robust date/time manipulation, and various helper functions. The current stable version is 2.0.6. While it offers polyfills, its primary design philosophy is to augment existing prototypes rather than providing standalone utility functions, which differentiates it from libraries like Lodash or Ramda. Releases appear to be driven by feature enhancements and bug fixes, with a major version bump from v1 to v2 bringing significant changes and requiring a dedicated upgrade path. It supports both browser and Node.js environments and ships with TypeScript type definitions.","language":"javascript","status":"active","version":"2.0.6","tags":["javascript","sugar","sugarjs","functional","browser","utility","util","date","time","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install sugar","imports":["import Sugar = require('sugar');","import Sugar = require('sugar/number');","import round = require('sugar/number/round');","require('sugar/locales/ja');","import type { SugarStatic } from 'sugar';"]},{"cmd":"yarn add sugar","imports":[]},{"cmd":"pnpm add sugar","imports":[]}],"homepage":"https://sugarjs.com/","github":"https://github.com/andrewplummer/Sugar","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sugar","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/sugar/compatibility"}}