Catalog npm
Back to packageRELEASE DETAILS

0.0.3

npm

11ty-dither

**Not Ready for Production**

Published2 Jan 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
}
^0.0.3runtime
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.27.0runtime
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-8KBI+HPP0h5IrYZVb0NxvmTaICpFvT4XQVRpSOxzTHTrUR61JSJbpYnmusCe926vulSuoThYVmoe7Pt+x/VtRg==",
  "shasum": "86bb635188cefd1de329e0a696f85a5c2b662e56",
  "tarball": "https://registry.npmjs.org/11ty-dither/-/11ty-dither-0.0.3.tgz",
  "fileCount": 3,
  "unpackedSize": 8059,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8IJpCRA9TVsSAnZWagAA/I8P/AsVsMjhTqbq36R4z+Vw\nf/MjkbYhP4kxg/lW/yI9aRkeJuOHdV7op7xkf2JcyZg8sClZh8VevZMV4N1P\nFq/07ZsZnM3scdQ82XvQ5NJi0sX4qElnzg6ULDtGB5/2Ui806rQWh1wGrQFP\n4JHhs3l5EZ54Wn/5U8uspJKC85D5VyQ/6meM1UJNIPZeIxVYqunJLp6ESKY7\nAzv+9WSz+CGMiwESW6NWeSEFUdhBKuf/WRgCExCP/cfU2Pf1Mp7JpXBtOKRT\nBBkCg3+42gYRiITWvPMVVZxl+72u8Hw6AQWOdqG2u22UQ7lMBNvRxTA9WlGt\nLmQkQgDQUnUyY6fMDt78OQBpsq2ttFdpc0uJutWEhSN/TrxoL9PD8KJD539i\ng6FBjjhKHoFif8O8eR4AEOXJbuf2/dIkolzSU2BXIYEhyuXycvtya+tp+e9c\n4+Kw6PkD107eOL1+aGRZ2Cg9RiIGqNe2DgOlDhujOqLqv3qtBJ+PSyhUbYxy\nfbZr1rTtktaRCDpwSkwdmzTCuJRRQcYXXzq3DAfTPFW1Z39w4EKbIJAFgkLF\nTqENDjHVbcjxPbZej3rJh54kTLXBiUlZaVyjylZtN30RfCMhAzpLlEXiYG0V\nAFM+i84ltwDxMffYTP9JCdeT61bw1soLwRiXqrj8nzVz1gi8WmvpktIO6gDL\nUlDk\r\n=vXnJ\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIDzfUxUd2wQgTM9JwymluXzTDRHYFM3GF365EzkbPBaqAiA85i5UJGzUZAl1cD8tyLHy2ccc9Jo4tYFW50i/6F7iJA=="
    }
  ]
}

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:d3aa5c57b96f988f5d88efbf5d5ee9697fcfbd45b6595d0131d9f71edfce6b2a

Other collected versions

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