@assetchain/shared

Set of shared components / libraries to help us writing node.js lambdas

Stats

StarsIssuesVersionUpdatedCreatedSize
@assetchain/shared
2.3.35 months ago4 years agoMinified + gzip package size for @assetchain/shared in KB

Readme

AssetChain Nodejs Shared Library

Set of shared components / libraries to help us writing node.js lambdas

Install

npm i --save aws-sdk @assetchain/shared

Breaking changes

2.x

  • Logger.createLogger is now async and returns a promise.
// before 2.x
const log = Logger.createLogger();

// after 2.x
const log = await Logger.createLogger();

Content

is (docs)

Set of helpers to quickly check variable types

Logger (docs)

This logger library provides an easier way to initialise execution-wide AWS loggers that will share the same metadata object within the lambda execution.

ParameterDiscoveryService (docs)

Library that provides an easier access to AWS SSM Parameter store to use it as a resilient distributed key/value storage for service discovery.

Correlation (docs)

Library that correlation id support based on Open Zipkin standard

Publish

Bump the version number before merging into master.

Login (npm login) as assetchain user (check devadmin@getfu.com.au email) and publish it

npm publish --access public

Development

Build this library using npm build - that will run eslint + prettier checks and unit tests

License

The MIT License (MIT)

Copyright © 2018 AssetChain

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.