Package Exports
- @brakbricks/nest-brickset-api
- @brakbricks/nest-brickset-api/dist/index.js
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 (@brakbricks/nest-brickset-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Brakbricks BricksetAPI for NestJS
A module wrapping @brakbricks/brickset-api for NestJS.
Usage
Installing
npm i @brakbricks/nest-brickset-api
Usage
Register the module.
import { Module } from '@nestjs/common';
import { BricksetApiModule } from '@brakbricks/nest-brickset-api';
@Module({
imports: [
BricksetApiModule.register({ apiKey: 'your-secret-api-key' }),
]
})
export class AppModule {}inject BricksetApiClient into any service
import { BricksetApiClient } from '@brakbricks/brickset-api';
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
constructor(
private readonly bricksetApi: BricksetApiClient,
) {}
}async register function?
Soon
Documentation
See https://brakbricks.github.io/nest-brickset-api/