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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lansforsakringar/icons

v4.12.0

Published

Länsförsäkringar Design System Icons

Readme

Länsförsäkringar Design System Icons

Icon library for Länsförsäkringar web and app development.

Scope of this README

This README covers the icons package only (packages/icons).

  • icon package install and usage
  • icon export CLI and Node API
  • icon contribution flow

For monorepo-level onboarding, use root README.md.

Install

npm install @lansforsakringar/icons

Package Contents

The published package includes:

  • Individual SVG files: {icon-name}[-mc]-{size}.svg
  • Sprite files by size: sprite[-mc]-{size}.svg
  • JSX icon components
  • TSX icon components
  • Format manifests: manifest.{format}.json

Standard sizes are available in monochrome and multicolor variants.

CLI

Binary name in this package: lfds-icons-export.

Usage
  $ lfds-icons-export [options]

Options
  --out, -o     Output directory [dist]
  --format, -f  Output format (svg,sprite,jsx,tsx) [svg]
  --grep, -g    Filter icons by name
  --size, -s    Size(s) to export, comma separated [all]
  --color, -c   Include multicolor variants (disable: --no-color) [true]
  --mono, -m    Include monochrome variants (disable: --no-mono) [true]
  --help        Display this message

Example:

npx lfds-icons-export -o dist/icons -f jsx -g bankid

Node API

import { build } from '@lansforsakringar/icons'

// Build JSX components for icons matching "bankid"
await build('dist/icons', {
	formats: ['jsx'],
	grep: 'bankid'
})

Usage

SVG file

<img src="/icons/wallet-24.svg" class="icon" alt="Wallet" />

SVG imported as module

import wallet24 from '@lansforsakringar/icons/wallet-24.svg'

const img = document.createElement('img')
img.src = wallet24
img.classList.add('icon')
document.body.appendChild(img)

Sprite

<svg class="icon" width="24" height="24">
	<use xlink:href="/icons/sprite-24.svg#wallet-24"></use>
</svg>

JSX/TSX component

import Wallet24 from '@lansforsakringar/icons/Wallet24.jsx'

export default function MyComponent() {
	return <Wallet24 className="icon" />
}

Manifest

A manifest is generated per format (manifest.{format}.json) and maps icon IDs to output paths.

Example:

{
	"wallet-24": "/dist/icons/wallet-24.svg"
}

For sprites, icon IDs map to xlink:href values:

{
	"sprite-24": "/dist/icons/sprite-24.svg",
	"wallet-24": "/dist/icons/sprite-24.svg#wallet-24"
}

Contributing

npm install
npm run build

To add an icon:

  1. Export from Figma using filled outlines in color #005AA0.
  2. Place the icon in src/svg/{size}.
  3. Run npm run build.

The build pipeline replaces #005AA0 with currentcolor.

Release

After adding icons:

npm version minor
npm publish