JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q21980F
  • License MIT

Create a `Buffer` of smallest PNG

Package Exports

  • smallest-png

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smallest-png) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

smallest-png

npm version Build Status

A Node module to create a Buffer of theoretically smallest PNG

const smallestPng = require('smallest-png');

smallestPng(); //=> <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 ...>
smallestPng().length; //=> 67

Suitable for test fixtures.

Installation

Use npm.

npm install smallest-png

API

const smallestPng = require('smallest-png');

smallestPng()

Return: Buffer

License

Copyright (c) 2014 - 2019 Shinnosuke Watanabe

Licensed under the MIT License.