Socket
Socket
Sign inDemoInstall

@skyscanner/bpk-svgs

Package Overview
Dependencies
1
Maintainers
6
Versions
107
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @skyscanner/bpk-svgs

Backpack's library of SVG's.


Version published
Weekly downloads
2.1K
decreased by-20.22%
Maintainers
6
Created
Weekly downloads
 

Readme

Source

bpk-svgs

Build Status

Backpack's collection of SVGs.

Installation

npm install @skyscanner/bpk-svgs --save-dev

Usage

This package exposes Backpack SVGs in various formats:

  • React components

    dist/js/icons/lg/*
    dist/js/icons/sm/*
    dist/js/spinners/*
    
  • An icon font

    dist/font/BpkIcon.ttf
    

Implementation

.svg assets are stored within ./src and various different formats are generated based upon this source. The generation tasks are defined within gulpfile.mjs.

JS

For web consumption, .svg files are transformed into individual react components. svgr is used to power the transformation, optimisation and form of the resulting react component. The current svgr setup will create typescript components, in order to provide consumers with .js assets to consume within their react codebase, typescript is used to transpile from typescript to javascript. .d.ts files are nested alongside the original source to provide typescript types to consumers.

Contributing

To contribute please see contributing.md.

FAQs

Last updated on 26 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc