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

akamai-automation

v0.1.3

Published

This project is a Puppeteer-based automation tool designed to automate configuration tasks in the Akamai CDN platform, specifically targeting Akamai Property Manager. The tool leverages Puppeteer for browser automation, enabling seamless interaction with

Downloads

6

Readme

Akamai Automation Tool

This project is a Puppeteer-based automation tool designed to automate configuration tasks in the Akamai CDN platform, specifically targeting Akamai Property Manager. The tool leverages Puppeteer for browser automation, enabling seamless interaction with Akamai's web interface to manage rules, behaviors, criteria, and other configuration components.

Features

  • Automate Property Manager Tasks: Create, update, and manage property configurations, including rules, behaviors, and criteria.
  • Behavior Management: Automatically check for, add, or update behaviors within property rules.
  • Version Control: Navigate through different property versions, create new versions based on staging or production, and manage draft versions.
  • Detailed Logging: Includes comprehensive logging to track all actions performed by the automation scripts.

Installation

  1. Clone the repository:

    git clone https://github.com/danghung1202/akamai-automation.git
    cd akamai-automation
  2. Install the dependencies:

    npm install

Usage

  1. Setup: Ensure you have access to Akamai's Property Manager and the necessary credentials for logging in.

  2. Run the automation scripts:

    • You can run individual scripts or create custom scripts to automate specific tasks. For example, to check if a behavior exists in a property:
    const puppeteer = require('puppeteer');
    const { checkHasBehaviorByName } = require('./path/to/your/module');
    
    (async () => {
        const browser = await puppeteer.launch({ headless: false });
        const page = await browser.newPage();
    
        // Navigate to the Akamai Property Manager login page and log in
        await page.goto('https://control.akamai.com');
    
        // Perform the task
        const hasBehavior = await checkHasBehaviorByName(page, 'Behavior Name');
        console.log(`Behavior exists: ${hasBehavior}`);
    
        await browser.close();
    })();
  3. Documentation: Detailed documentation for each method is available in the docs directory. You can also generate a Docusaurus site to browse the documentation more easily.

Project Structure

  • src/: Contains the core automation scripts.
  • docs/: Documentation files for the functions in this project.
  • log/: Utility for logging actions during script execution.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, feel free to open an issue on GitHub.


Disclaimer

This tool is intended for use by authorized users of Akamai's CDN platform. Please ensure you have the necessary permissions to perform automated tasks on your Akamai account.