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
ornpm
:
# yarn
yarn add nest-shared
# npm
npm i nest-shared --save
Import the lib with es6 or cjs:
// es6
import shared from 'nest-shared';
// cjs
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`));