Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

sass-math-pow

0.1.5 • Public • Published

sass-math-pow

david

Math pow() polyfill/feature detection with non-integer exponents support for (without compass) ruby sass, plain sass and sass+eyeglass

It will autodetect whether pow() with native non-integer exponents support is available (by eyeglass+sass with eyeglass-math) for full performance and also tries to intall it (as dependency of this package), otherwise, in case of ruby sass without compass or plain sass, a pow() polyfill is used instead that supports pow() with non-integer exponents.

This polyfill is useful for projects that may use pow() with non-integer exponents and should correctly caluclate across different sass variants and versions.

Usage

> npm install --save-dev sass-math-pow

Note: To @import from npm packages/node_modules with ruby sass or plain sass (without eyeglass), sass-include-paths helper may be useful.

@import 'math-pow';
@debug poly-pow(9, 0.5); // =3 across different sass variants

Credits

Polyfill by drtimofey, script based on script by davidkpiano, see these links

install

npm i sass-math-pow

Downloadsweekly downloads

1,283

version

0.1.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability