image-xterm-loader

1.0.10 • Public • Published

image-xterm-loader

Load images with Webpack as XTerm 256-color compatible strings.

Install

npm install image-webpack-loader --save-dev

Usage

Documentation using loaders.

In your webpack.config.js, add the image-xterm-loader:

loaders: [
    {
        test: /\.(jpe?g|png|gif)$/i,
        loaders: ['image-xterm-loader?cols=80'],
    }
]

Options

cols

Type: integer Default: 80

Using this, will scale the image to the number of columns wanted.

/image-xterm-loader/

    Package Sidebar

    Install

    npm i image-xterm-loader

    Weekly Downloads

    11

    Version

    1.0.10

    License

    MIT

    Last publish

    Collaborators

    • dfrankland