JSPM

  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q61741F
  • License MIT

Shared code for nestjs projects

Package Exports

  • nest-shared
  • nest-shared/lib/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 (nest-shared) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Installation

Install with yarn or npm: yarn add nest-shared or npm i nest-shared --save

Import the lib with es6 or cjs:

// es6
import shared from 'nest-shared';
const shared  = require('nest-shared');

Usage example:

#!/usr/bin/env node
import app from './app';
import shared from 'nest-shared';

app.listen(shared.PORT, () =>
  process.stdout.write(`Server is running on port ${shared.PORT}\n`)
);