1.0.14 • Published 6 years ago

@nicoandmee/bt_backend-core v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Reference

ey.Error

const ey = require('@nicoandmee/bt-backend-core')
throw new ey.Error(404, 'Not Found', req.body)

ey.config

// this should be called at very *very* first
const ey = require('@nicoandmee/bt-backend-core')

async function main () {
  await ey.config.load()
  require(src)
}

main()

ey.logger

const ey = require('@nicoandmee/bt-backend-core')
const logger = ey.logger('project-name-here')
const loggerUsingDifferentAppInsightsClient = ey.logger({
  label: 'project-name-here',
  appInsightsClient,
})
logger.info('info')
logger.error('post to slack', { channel: '#anony-bot' })

ey.queue

const ey = require('@nicoandmee/bt-backend-core')
ey.queue.put(ey.queue.TARGET_PT, 'awef')
ey.queue.put(ey.queue.TARGET_PT, { test: 'awef' }) // will JSON.stringify
1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago