
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
A tool that splits large CSS files to fix the internet explorer selector limit bug
A tool for splitting CSS files to fix the Internet Explorer selector limit of 4096 bug.
In order to use motley you will need to require it and then it will return the motley function that you can call.
var motley = require('motley');
motley({
fileName:'nameOfHugeCssFile.css',
diagnostics:false,
callback:function () {},
limit:4095
});
The file name is the name of the file that has the large amount of css inside of it. Motley will override it with the css that fits within IE's limits and then add imports to that file and create the rest of the files labeled fileName1, fileName2, etc as many files as are needed to stay under the specified limit or the IE limit.
When set to true, diagnostic information will be printed when ran to keep track of things and see selector and comment count. The default value is false.
As this is an asynchronous operation the callback is for you to know when Motley is finished. By default this is undefined.
The library is for the IE limit of 4096 however if you would like the limit to be smaller or larger for performance testing that is allowed.
Create an issue and a PR and I will look into it.
MIT license found in the LICENSE file above.
FAQs
A tool that splits large CSS files to fix the internet explorer selector limit bug
We found that motleycss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.