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

@lordlingham/create-tealium-tool

v1.0.2

Published

A CLI to bootstrap custom Tealium Tools

Downloads

3

Readme

create-tealium-tool

create-tealium-tool allows for you to create template files for custom Tealium tools.

Usage

Install the tool globally using npm i -g @lordlingham/create-tealium-tool Navigate to your destination directory and then generate your starter files using create-tealium-tool

For example

npm i -g @lordlingham/create-tealium-tool mkdir my_tool && cd my_tool` create-tealium-tool

You will be prompted to answer a few basic questions about the tool, which will populate the template files.

The following files will be generated.

tool.json This file will contain your setup information about the tool, and generally does not need to be modified.

ui.html This will be a template file - You will want to edit this to provide a UI within the extension popup. We use Handlebars to generate the output when the tool is in use.

page.js This file will be the main star of the show. This will be the JavaScript which executes the functionality of the tool, and if required - pass messages back to the extension popup to be displayed within the template defined in ui.html This template file contains basic checks against the page the tool is being ran on for TIQ or CDH. Any other rules should be easy to change - You can modify or remove these checks if necessary.

Predefined functions

|Function|Description| |--|--| | main | The main function that runs when the tool is messaged. Generally this contains a switch statement checking for a command property and acts accordingly. log | Used to send messages from the window to the extension ui_state| Helps control the UI State of the extension, use this to easily switch between views / stages of user interaction within the UI. error| Records / sends error message and updates the UI State makeProgressCircle| Updates the UI State to "ui_wait" which adds a CSS Spinner makeFinishCircle| Updates the UI state to "ui_finish" which removes the associated CSS Spinner

Further Reading

https://community.tealiumiq.com/t5/Technical-Solutions/Tealium-Tools-Framework/m-p/15688 https://community.tealiumiq.com/t5/Developer-Tools/Creating-Custom-Tealium-Tools/ta-p/332