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

particles-common-core

v0.3.7

Published

DEPRECATED in favor of particles-core

Downloads

70

Readme

DEPRECATED particles-common-core

** Deprecated **

Please use particles-core instead.

This project will remain for any particles that rely on it, but it will not be updated.

DEPRECATED Documentation

As stated above the project has been deprecated in favor of particles-core. For projects that still rely on particles-common-core refer to the documention is accurate as of the last release.

conditions

is_true

Will evalute to true if the related parameter is true

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

is_false

Will evalute to true if the related parameter is false

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

is_empty

Will evalute to true if the related parameter is an empty string

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

##helpers

propertyValue

Evaluates whether the property is an object or string and returns the correct template compatible syntax for each.

Parameters

  • value {string|object} required The property value to evaluate and/or change.

parameters

base

  • value {string|object} required String, Ref or Fn to output.
  • description {string|object} String, Ref or Fn to use for the description

parameters

base

A generic implementation of a parameter

Parameters

  • type {String} required maps to Type
  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • allowedValues {Array} maps to AllowedValues
  • allowedPattern {String} maps to AllowedPattern
  • maxLength {String} maps to MaxLength
  • minLength {String} maps to MinLength
  • maxValue {Int} maps to MaxValue
  • minValue {Int} maps to MinValue
  • description {String} maps to Description
  • constraintDescription {String} maps to ConstraintDescription

cidr_range

Creates a parameter that accepts a valid CIDR as the value.

Parameters

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • allowedValues {Array} maps to AllowedValues
  • allowedPattern {String} maps to AllowedPattern
  • description {String} maps to Description

Defaults

  • description "Valid CIDR Range. Format: x.x.x.x/x"

true_false

Creates a parameter that accepts either "true" or "false" as the value.

Parameters

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • description {String} maps to Description

partials

fn_get_att

Parameters

  • logicalId {String} required logicalId to reference
  • attributeName {String} required name of the attribute to reference

ref

Parameters

  • logicalId {String} required logicalId to reference

sets

true_false

When used in a layout, will generate a parameter and condition for true/false values

Parameters

  • paremeterLogicalId required LogicalId for the parameter
  • conditionLogicalId required LogicalId for the condition

Passed on to parameter

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • description {String} maps to Description

resources

base

A generic implementation of a resource

Parameters

  • type {String} required maps to Type
  • creationPolicy {String} maps to CreationPolicy
  • deletionPolicy {String} maps to DeletionPolicy
  • updatePolicy {String} maps to UpdatePolicy
  • properties {String|Object} maps to Properties
  • condition {String} maps to Condition
  • metadata {String} maps to Metadata
  • dependsOn {Int} maps to DependsOn