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

uenv-s3-plugin

v0.0.1

Published

s3 plugin for uenv configuration manager with encryption support

Downloads

4

Readme

about

uenv-s3-plugin provides a plugin to store and retrieve configuration from AWS S3 buckets, it also allows on-the-fly encryption of the configuration before it is stored

requirements

uenv

installation

npm install --save uenv-s3-plugin

by example

const uenv = require('uenv')
const uenvs3 = require('uenv-s3-plugin')

uenv.plugin('s3', uenvs3)

// import enviorment variables into configuration
const s3 = uenv.s3({ bucket: 's3bucket', key: 'stored_path', encryption: { password: '123456' } })

// using callback
s3.getObject(err => {
  // data now available
  uenv.get('s3_stored_key')
  uenv.set('foo', 'bar')

  // store changes in S3
  s3.putObject()
})

// using promises

s3.getObject().then(() => {

})

// assign results to a leaf
const s3Leaf = uenv.s3('child.place' { bucket: 's3bucket', key: 'stored_path', encryption: { password: '123456' } })

s3.getObject().then(() => {
  uenv.get('child.place.foo') // bar
})

API

uenv.s3({ bucket, key, region, credentials, encryption })

  • bucket - S3 bucket name
  • key - S3 key name
  • region - AWS Region, defaults to us-east-1
  • credentials - provide alternative credentials, passes arguments to AWS.Credentials(), eg { accessKeyId: '', secretAccessKey: ''}
  • encryption - encrypts data before storage, defaults to aes192 eg: { cipher: 'aes192', password: '123456' }

bucket, key, region, credentials, encryption

s3.getObject(cb)

Gets configuration from S3, if cb is not provided, a promise would be returned

s3.putObject(cb)

Sets configuration in S3, if cb is not provided, a promise would be returned

License: MIT