
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
leaflet-css
Advanced tools
small library to add the css for leaflet without having to bother including ugly conditional comments
to use, either include leaflet.css.js or leaflet.css.min.js scripts like a regular plugin and don't bother putting the css links in the head, or you can include leaflet.css.bundle.js or leaflet.css.bundle.min.js instead of leaflet.js, i.e. instead of :
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
just include
<script src="http://leaflet-extras.github.com/leaflet.css/dist/leaflet.css.bundle.min.js"></script>
if you want to call more css in the same way, like maybe for your own plugin, you can do
L.css(["string of css (optional)","string of css for internet explorer, (also optional)"]);
build with
npm install #install dependencies
cake build # if that gets you an error try this first
npm install -g coffee-script # you may need a sudo
The css from leaflet and licenced per that project the rest is MIT licenced demo includes leaflet.sprite
FAQs
Leaflet CSS ==========
The npm package leaflet-css receives a total of 457 weekly downloads. As such, leaflet-css popularity was classified as not popular.
We found that leaflet-css 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.