npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anione

v1.2.7

Published

A CLI (NPM) tool to ease the repetitiveness that comes with coding HTML5 banner ads.

Downloads

7

Readme

Anione

This is no longer maintained. If you're interested in doing so, please let me know.

A CLI (NPM) tool to ease the repetitiveness that comes with coding HTML5 banner ads. Animate one banner with Greensock's animation library, resize it, preview it, package it, done. Anione lets you focus on the animation.

Once you've animated your first banner, you can run resize and then easily tweak that animation for each size, giving you full control over each size.

After that, it's often necessary to send the banners for review to a client or within an agency, that's what the preview command is for. Just drag and drop the preview folder on a publicly accessible server and it's ready for sharing.

Once you're ready to package the banners, just run the handoff command. This command grabs all related images and global css/js assets for each banner. Then makes a version of the banner for each vendor, and zips it up. Then all banners are zipped into one nice packaged file.

Development Experience

Anione is all about making the development experience of HTML5 banner animation easier and more pleasant. As such, there is a centralized view where you can ajax load each banner with a timeline scrubber. This view is loaded with Browser Sync after both of the ani one, ani resize, and ani watch commands.

Commands:

  • init – Builds Anione project directory structure and config.
  • one – Generates first banner from template.
  • resize – Resize your first banner into all remaining sizes selected during configuration. These can also be found in your ani-conf.json file.
  • watch - Run a BrowserSync server to watch the banners and launch the generated index.html
  • preview - Generate a drag n' drop preview webpage to showcase the banners.
  • stage - Via rsync, copy preview to a stage server to showcase the banners.
  • handoff - Zip/Package/Compress the Banner-Ads for ad-network delivery.

Options:

  • -h, --help output usage information
  • -V, --version output the version number

Asset naming conventions

Layers for HTML5 Banners

These are images that you'll use within the HTML5 banners. Be sure that each banner has it's own images. Even if banners use the same image, each banner will need their own. Place all of these images in assets/images/ during development. These will be copied into each individual banner directory when you run the handoff command. To work with anione, name them as follows: size-layername.extension (Example: cta-300x600.png). Checkout this Photoshop script to export image layers quickly.

Static backups

These are often used by vendors as statics when HTML5 banners aren't able to load in a visitors browser. To work an anione, you'll want to put them within the assets/statics/ dir, and name them as follows: size-static.extension (Example: 300x600-static.png). Checkout this Photoshop script to export static backups quickly.

CSS & JS Libraries

You're more than welcome to use custom CSS & JS libraries with your project. In fact anything within the assets/libs-css/ and assets/libs-js/ directories will be copied into each banner during handoff generation.

Generated Project Structure

  • ani-conf.json
  • README.md
  • .gitignore
  • assets
    • statics
      • (size-static.jpg)
      • (size-static.png) ...
    • images
      • (size-layer.jpg)
      • (size-layer.png) ...
    • libs-js
      • (js-library.js) ...
    • libs-css
      • (css-library.css) ...
  • banners
    • (size.html) ...

Checking File Size

If your project has a file size restriction, you may want to check the size of your banner at any given point of it's development. You can easily do this by running ani handoff to generate a handoff.zip. After that, unzip the handoff and then view each banner's file size within your file viewer.