New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@marktext/file-icons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marktext/file-icons

atom file icons

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

File Icons

File icons used in MarkText and inspired by file-icons/atom.

Installation

yarn add @marktext/file-icons

Usage

import fileIcons from '@marktext/file-icons'
import '@marktext/file-icons/build/index.css'

const icon = fileIcons.matchLanguage('javascript')
// iconEle.classList.add(icon.icon)
// icon with color
// iconEle.classList.add(icon.colour[0])
// iconEle.classList.add(icon.colour[1])

You can refer more APIs at atom/icon-tables.js at master · file-icons/atom · GitHub

Development

yarn dev

And open browser at http://127.0.0.1:3000/ to see the example. the example is at folder src.

Build and Publish

# Change the version in package.json
# Build to the build folder
yarn build
# Publish to npm
yarn pub

License

MIT.

Keywords

file

FAQs

Package last updated on 02 Jan 2022

Did you know?

Socket

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