Socket
Socket
Sign inDemoInstall

@hatchly/adonis-icons

Package Overview
Dependencies
0
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hatchly/adonis-icons

Official Adonis integration for Hatchly Icons Attribute


Version published
Maintainers
3
Created

Readme

Source

Adonis Icons

Adonis integration for Hatchly to obtain icons from Nuxt instance

Installation

$ yarn add @hatchly/adonis-icons

Usage

Once the module is installed it will register and boot a route, complete with controller, to allow a Hatchly instance to get the keys for all icons used within the project.

PHP

This works in tandem with the Hatchly IconAttribute package found here - @todo

Usage

Add the module to your applications service providers in start/app.js:

const providers = [
    // Other providers
    '@hatchly/adonis-icons/adonis/providers/IconProvider',
];

Add an icons.js to your config directory to set the svg sprite path.

const path = require('path');

module.exports = {
    path: path.resolve(__dirname, '../resources/assets/icons/sprite-file-name.svg');
};

FAQs

Last updated on 09 Jun 2020

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