Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@monogrid/lut-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monogrid/lut-loader

A webpack loader that allows to bundle LUT files as PNG

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

lut-loader

A webpack loader that enable to bundle LUT files as PNG

Installation

npm install lut-loader

or

yarn add lut-loader

Webpack Configuration

You can use lut-loader in combination with other loaders.

For example, if you want to parse a .cube file and import it as PNG directly in your source code you have to do:

module: {
  rules: [{
    test: /\.cube$/,
    use: [
      {
        loader: 'file-loader',
        options: {
          name: utils.assetsPath('assets/lut/[name].[hash:7].png')
        }
      },
      {
        loader: 'lut-loader'
      }
    ]
  }]
}

or if you want to obtain only the buffer data:

module: {
  rules: [{
    test: /\.cube$/,
    use: [
      {
        loader: 'lut-loader'
      }
    ]
  }]
}

example of usage:

import LUTNight from './assets/luts-source/night.cube'

// ...

applyPngLut(LUTNight)

Keywords

FAQs

Package last updated on 15 Nov 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc