0.0.11 • Published 2 years ago
@golpasal/common v0.0.11
common
Install
npm install --save @golpasal/common
Usage
// helper
import { helpers } from '@golpasal/common';
const locale = new Locale(localeSettings);
// get accept-language
locale.renderAcceptLanguage(helpers.getLocale(headers['accept-language']));
// set lcoale in req
req.locale = locale;
// constant
import common from '@golpasal/common';
const { EmploymentStatus } = common.status;
const employmentStatus = EmploymentStatus.COMPLETED;
const employments = this.repo.find({ status: EmploymentStatus.COMPLETED });