GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brefphp/layers.js: Exposes Bref layers to Node applications

BranchesTags
Open more actions menu

Latest commit

 

History

301 Commits
301 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
scripts
scripts
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
layers.js
layers.js
 
 
layers.json
layers.json
 
 
package.json
package.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

NPM package to use Bref runtimes on AWS Lambda.

This package is useful is you need to reference the Bref layers from a NodeJS application. For example if you use the AWS CDK, Pulumi, etc.

Note

If you are using the AWS CDK, you might be interested in the @bref.sh/constructs package instead.

Installation

npm install @bref.sh/layers

Version compatibility with Bref

This package is compatible with Bref 3.0 and above.

This NPM package and Bref are compatible as long as they have the same major version. For example:

  • v2.x.y of this package is compatible with v2.z.w of Bref
  • v3.x.y of this package is NOT compatible with v2.z.w of Bref
  • v2.x.y of this package is NOT compatible with v3.z.w of Bref
  • etc.

All minor and patch versions are not important. Only the major version matters. That means you can upgrade Bref separately from upgrading this package (though it's always good to stay on the latest versions).

Usage

Get a layer version:

import { layerVersions } from '@bref.sh/layers';

console.log(layerVersions['php-84']['us-east-1']);
console.log(layerVersions['arm-php-84']['eu-west-3']);

Helpers to get a full ARN:

import { layerArn } from '@bref.sh/layers';

console.log(layerArn(region, '8.4'));
console.log(layerArn(region, '8.4', 'arm'));

About

Exposes Bref layers to Node applications

github.com/brefphp/bref/issues/1300

Resources

Readme
MIT license
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.