Catalog npm
Back to packageRELEASE DETAILS

0.0.5

npm

11ty-dither

**Not Ready for Production**

Published5 Jul 2021
Direct dependencies6
Transitive dependenciesNot calculated

README

Current package documentation

Not Ready for Production

@11ty-dither

Dither images at build time for 11ty using dither-me-this.

11ty-dither takes a source image, and outputs dithered images in multiple sizes and formats. It replaces your <img> element with a responsive <picture> element.

@11ty-dither and dither-me-this are open source projects. You can contribute via github.

Setup

npm install @11ty-dither
const { ditherAllImages } = require('@11ty-dither')

module.exports = (eleventyConfig) => {

    const ditherOptions = {
        
        /* Options for dither-me-this work here */

        inputDirectory: './src',
        outputDirectory: './_site',
        imageFolder: '/images',
        palette: ["#000", "#FFF"]
    }

    eleventyConfig.addPlugin(ditherAllImages, ditherOptions)

}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
dither-me-this
Environment
{
  "local_name": "dither-me-this",
  "alias": false,
  "peer_metadata": null
}
*runtime
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
^16.4.0runtime
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.6.1runtime
path
Environment
{
  "local_name": "path",
  "alias": false,
  "peer_metadata": null
}
^0.12.7runtime
sharp
Environment
{
  "local_name": "sharp",
  "alias": false,
  "peer_metadata": null
}
^0.28.3runtime
shorthash
Environment
{
  "local_name": "shorthash",
  "alias": false,
  "peer_metadata": null
}
^0.0.2runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-zXucKmpsDwXrZpiuFBMcb26QATw3S4GgCAZJGXElVnO6cQBhDq+fhAF6B6RS9FeUn5s5NvaoaohNwrhlzV5Ptw==",
  "shasum": "bc995810dac998ed9533428123033eaa0474ede8",
  "tarball": "https://registry.npmjs.org/11ty-dither/-/11ty-dither-0.0.5.tgz",
  "fileCount": 4,
  "unpackedSize": 11106,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4xmUCRA9TVsSAnZWagAAkSEP/RByGmioDenIfnuO58m4\nUKtFTx02f+XT4FYfckmus0kkQENWXHCiE9USuEH0FxW6dhh0lOhPkLW7HF5r\nBn5AAyAUy7AEipTEtxfaTYtDG2C3rgliEENr7fZ66tMkz+4fndSq44VYuJpc\nSJ7HWKk5Su4kOGKZoS1LPlw8oG25lj+Y7W6GZlSfzLfs4lkXoah4IWE0zT5T\noAXx4sN7tEm+5qgDczq2fSrhrchqhd2w72WqVZIPZ5/ZXAdaASn+o1hujUzZ\nXXCukeOGAmKCBaqhjrcvfbrzwWGRVvHK+7wgSwSrwweXo6ARJ0hULzW2GSye\n1rw8apba1SWiBOJMTd2pkXJ6+GK6fmrw8pa8lPs1I0ONZHz4as5IvwszqdjE\ntCWz477OZuUqlZC8SMgHmaOAy5f21ImrH+Y8/+X9l8hedkP+f0cEjpJdJryM\nK38M4jxJMdMmsM3Tx19uAD1BNPuC4B43hRxowth7Aej+dU1LlkSUWWebmru7\niOzHC8A+gPv9Y1uJ73aFo8cSdOVjAfZQMcfFpPvX1rN3O1rLDIWAu4o83nZf\n9/XgBhqW7FKCRajJfr8explW7981ysUOammST3gQFtN+5S7I5TqeyHqTOL2D\nDVpBMmBIAXsX0QzPgPN+twxkyEGB+UjvmhNkBRxvREQ5wjj+syD+o31uOS9h\ntZNb\r\n=PfZY\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQD4IM4E9zmN9wIIJzrE93UHgB9VlGYOPmQzYmi5HsgAGwIgG2TQQbdWiXiqczgtFpwKwW7mPBaPGaT00ylaHksbek0="
    }
  ]
}

Repository

PENDING
shadowfaxrodeo/11ty-dither

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5fe9bf913eb76d034174a5437c5cd84b9a693c003ac5eae96e4dcbe00e5c391e

Other collected versions

0.0.825 Jul0.0.725 Jul0.0.625 Jul0.0.45 Jul0.0.32 Jan0.0.22 JanView all collected versions →