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

@adobe/reactor-validator

v2.3.0

Published

Validates a Tags extension package.

Downloads

1,878

Readme

Adobe Experience Platform Tags Extension Validator

npm (scoped)

Adobe Experience Platform Tags is a next-generation tag management solution enabling simplified deployment of marketing technologies. For more information regarding Tags, please visit our product website.

The extension validator helps extension developers validate that an extension package is well-structured. Namely, it verifies that:

  1. The extension has a manifest (extension.json) matching the expected structure.
  2. All referenced directories and files exist at the specified locations within the extension directory.

For more information about developing an extension for Tags, please visit our extension development guide.

Usage

This tool is currently integrated and automatically executed within other tools that extension developers typically use, namely the Extension Sandbox Tool and Extension Packager Tool. This is likely sufficient for most extension developers.

Running the Validator from the Command Line

Before running the validator, you must first have Node.js installed on your computer.

Once Node.js is installed, run the validator by executing the following command from the command line within your extension's directory:

npx @adobe/reactor-validator

Incorporating the Validator into Other Tools

If you would like to incorporate the validator into your own extension development tools, you may do so by first installing the validator as a dependency inside your tool's project:

npm i @adobe/reactor-validator

Once it has been installed as a dependency, import the validator and pass it an extension manifest object (this is the object exported from an extension.json file). If the value returned from the validator is undefined, then the extension appears to be well-formed; otherwise, the value will contain a description of the issue that was encountered.

const validate = require('@adobe/reactor-validator');
const error = validate(require('./extension.json'));

// Will be undefined if no error was found.
console.log(error);

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

To get started:

  1. Install node.js.
  2. Clone the repository.
  3. After navigating into the project directory, install project dependencies by running npm install.

To manually test your changes, first run the following command from the sandbox tool directory:

npm link

Then, in a directory containing an extension (any extension you would like to use for testing), run the following command:

npx @adobe/reactor-validator

Npx will execute the sandbox tool using your locally linked code rather than the code published on the public npm repository.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.