npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eleventy-plugin-atlasicons

v1.1.0

Published

A flexible icon family for interfaces, diagrams, presentations — whatever, really.

Downloads

12

Readme

eleventy-plugin-atlasicons

npm npm license

An Eleventy shortcode, allows Atlas icons to be embedded as inline svg into templates.

Installation

Install the plugin from npm:

npm install eleventy-plugin-atlasicons --save-dev

Add it to your Eleventy Config file:

const eleventyPluginAtlasicons = require('eleventy-plugin-atlasicons');

module.exports = function (eleventyConfig) {
    eleventyConfig.addPlugin(eleventyPluginAtlasicons);
};

Advanced usage:

const eleventyPluginAtlasicons = require('eleventy-plugin-atlasicons');

module.exports = function (eleventyConfig) {
    eleventyConfig.addPlugin(eleventyPluginAtlasicons, {
        class: `atlas-icon`,
        style: `display: inline-block;`,
        category: 'unknown',
        size: 24,
        weight: 'regular', // thin, light, regular, medium, bold
        strokeWidth: 2, // optional
        color: 'currentColor',
        dataIconAttributes: false,
        debug: false
    });
};

What does it do?

The plugin turns 11ty shortcodes like this:

{% atlas "like-thumbs-up-sticker" %}

or

{% atlasicon "like-thumbs-up-sticker" %}

into HTML code like this:

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 22.91 22.91" stroke-width="1.5" class="atlas-icon" data-icon-category="achievement" data-icon-name="like-thumbs-up-sticker">
    <g transform="translate(-0.545 -0.545)">
        <path d="M22.5,12c0,.9-1.1,1.64-1.32,2.46s.35,2.05-.08,2.79-1.77.85-2.38,1.47-.71,1.94-1.47,2.37-1.94-.14-2.79.09S12.89,22.5,12,22.5s-1.63-1.1-2.46-1.32-2,.35-2.79-.09-.85-1.76-1.47-2.37S3.34,18,2.9,17.25s.15-1.93-.08-2.79S1.5,12.9,1.5,12s1.1-1.64,1.32-2.46-.35-2,.08-2.79S4.66,5.9,5.28,5.28,6,3.34,6.75,2.9s1.93.15,2.79-.08S11.1,1.5,12,1.5s1.64,1.1,2.46,1.32,2-.35,2.79.08.85,1.76,1.47,2.38S20.66,6,21.1,6.75s-.15,1.93.08,2.79S22.5,11.1,22.5,12Z" fill="none" stroke="currentColor" stroke-linecap="square" stroke-miterlimit="10"></path>
        <line y1="8.59" transform="translate(7.23 8.18)" fill="none" stroke="currentColor" stroke-miterlimit="10"></line>
        <path d="M7.16,14.86h1l1.91,1h4.4a1.7,1.7,0,0,0,1.65-1.29l.58-2.33a1.4,1.4,0,0,0,.05-.41h0a1.7,1.7,0,0,0-1.7-1.7H13l.67-1.34a2.65,2.65,0,0,0,.29-1.2h0a1.27,1.27,0,0,0-1.27-1.28h0a1.28,1.28,0,0,0-1,.51L9.14,10.09H7.23" fill="none" stroke="currentColor" stroke-miterlimit="10"></path>
    </g>
</svg>

Custom Usage

{% atlas "like-thumbs-up-sticker", { 
    size: 64,
    class: "atlas-icon bg-currentColor",
    dataIconAttributes: true
} %}

Contributing

If you notice an issue, feel free to open an issue.

  1. Fork this repo
  2. Clone git clone [email protected]:reatlat/eleventy-plugin-atlasicons.git
  3. Install dependencies npm install
  4. Build npm run build
  5. Serve locally npm run dev

Icons License

The icons were created by Ramy Wafaa and are available under the MIT license.

License

The code is available under the MIT license.