{"library":"node-sass-utils","type":"library","category":null,"description":"node-sass-utils provides a collection of helper functions designed to simplify working with Sass values within JavaScript functions exposed to `node-sass` (and `dart-sass`, aka `sass` on npm). It addresses the complexity of handling Sass data types (like strings, numbers, booleans, lists, and maps) in a JavaScript environment. The library is currently at version 1.1.3. While its primary integration point was `node-sass`, it has been tested and confirmed to work with `dart-sass`, providing a bridge for utility functions regardless of the underlying Sass compiler implementation. This allows developers to write more robust and type-safe custom Sass functions in JavaScript. Key differentiators include methods for type assertion (`assertType`), type checking (`typeOf`, `isNull`, `isFalsy`), string manipulation (`sassString`, `unquote`), and crucial type casting utilities (`castToSass`, `castToJs`) for seamless data exchange between JavaScript and Sass. It is important to note its CommonJS module format and the specific initialization pattern requiring the Sass object.","language":"javascript","status":"maintenance","version":"1.1.3","tags":["javascript"],"install":[{"cmd":"npm install node-sass-utils","imports":["const sass = require('sass');\nconst sassUtils = require('node-sass-utils')(sass);","const sass = require('sass');\nconst sassUtils = require('node-sass-utils')(sass);\nconst { SassDimension } = sassUtils;","const sass = require('sass');\nconst sassUtils = require('node-sass-utils')(sass);\nconst { castToSass } = sassUtils;"]},{"cmd":"yarn add node-sass-utils","imports":[]},{"cmd":"pnpm add node-sass-utils","imports":[]}],"homepage":null,"github":"https://github.com/sass-eyeglass/node-sass-utils","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-sass-utils","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/node-sass-utils/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}