JSPM

  • Created
  • Published
  • Downloads 309201
  • Score
    100M100P100Q186975F
  • License Apache-2.0

Types for CloudFormation Service Specifications

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/service-spec-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @aws-cdk/service-spec-types

    Types and utils for CloudFormation Service Specifications

    import { emptyDatabase, SpecDatabase } from '@aws-cdk/service-spec-types';
    import * as fs from 'node:fs';
    import * as zlib from 'node:zlib';
    
    export function loadAwsServiceSpec(): SpecDatabase {
     const specDatabase = fs.readFileSync('db.json.gz'));
     const db = emptyDatabase();
     db.load(JSON.parse(zlib.gunzipSync(specDatabase).toString('utf-8')));
     return db;
    }