Socket
Socket
Sign inDemoInstall

@jaypie/cdk

Package Overview
Dependencies
127
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jaypie/cdk

AWS CDK utilities for Jaypie


Version published
Maintainers
1
Created

Readme

Source

Jaypie CDK ☃️

AWS CDK utilities for Jaypie

📋 Usage

@jaypie/cdk is a CommonJS package that is compatible with the AWS CDK libraries. Unlike other Jaypie packages, @jaypie/cdk should not be installed alongside jaypie.

Installation

npm install @jaypie/cdk

Example

TODO: Example should include one trivial and possibly one thorough example of using the library

📖 Reference

import {
  cfnOutput,
  isValidHostname,
  isValidSubdomain,
  mergeDomain,
  projectTagger,
} from "jaypie";

cfnOutput

Creates a CloudFormation output for each key in the output object.

import { CfnOutput } from "aws-cdk-lib";
import { cfnOutput } from "jaypie";

const output = {};
output["key"] = "value";

// ...

cfnOutput({ CfnOutput, output, stack: this });

isValidHostname

What it says on the tin. Returns boolean

import { isValidHostname } from "jaypie";

const hostname = "example.com";
const isValid = isValidHostname(hostname);

isValidSubdomain

What it says on the tin. Returns boolean

import { isValidSubdomain } from "jaypie";

const subdomain = "sub.example.com";
const isValid = isValidSubdomain(subdomain);

mergeDomain

Merges a subdomain with a domain

import { mergeDomain } from "jaypie";

const domain = "example.com";
const subdomain = "sub";
const merged = mergeDomain(subdomain, domain); // "sub.example.com"

projectTagger

Tags the stack with stack name and project conventions.

import cdk from "aws-cdk-lib";
import { projectTagger } from "jaypie";

// ...

projectTagger({
  cdk,
  stack,
  stackName,
});

Tags:

  • buildDate
  • buildTime
  • commit
  • creation
  • env
  • nonce
  • project
  • service
  • sponsor
  • stack
  • version

📝 Changelog

DateVersionSummary
3/30/20241.0.0First complete version
3/30/20240.0.1Initial commit

📜 License

Published by Finlayson Studio. All rights reserved

FAQs

Last updated on 21 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc