1.0.14 • Published 7 years ago

@nicoandmee/bt_backend-core v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
7 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

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago