@silkon/common
v2.8.1
Published
A progressive Node.js framework for building serverless applications with TypeScript. (@common)
Maintainers
Readme
@silkon/common
Shared runtime helpers, types, and error classes for Silkon packages.
Installation
npm install @silkon/commonQuick start
import { GeneralException, isString, type GenericPayload } from '@silkon/common';
const payload: GenericPayload = {
name: 'silkon',
};
if (!isString(payload.name)) {
throw new GeneralException('Expected name to be a string');
}Build
This package is built with TypeScript project references and publishes the compiled output in dist/.
npm run buildPackage details
- Name:
@silkon/common - Module type: CommonJS
- Entry point:
dist/index.js - Types:
dist/index.d.ts
