Catalog npm
Back to packageRELEASE DETAILS

0.10.4

npm

3nit-utils

NodeJS & React utils for 3nit projects

Published23 Mar 2018
Direct dependencies18
Transitive dependenciesNot calculated

README

Current package documentation

3nit-utils

Utils for setting up a Next.js project

Minimal server.js setup:

require('babel-polyfill')
require('babel-register')({presets: ['es2015', 'stage-0']})
require('dotenv').config()

const utils = require('3nit-utils')

const {db, server} = utils
const dev = process.env.NODE_ENV !== 'production'

const models = require('../config/models')

require('debug').enable('dev')

db.init(require('mongoose'), 'mongodb://localhost/*****', models).then(() => {
  server.init({
    port: dev ? 4000 : 8049,
    app: require('next')({ dev, dir: '.' }),
    routes: require('./api').routes})
})

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 18

Native requirements
18 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
debug
Environment
{
  "local_name": "debug",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
hapi
Environment
{
  "local_name": "hapi",
  "alias": false,
  "peer_metadata": null
}
^16.6.2runtime
mongoose
Environment
{
  "local_name": "mongoose",
  "alias": false,
  "peer_metadata": null
}
^4.12.3runtime
next
Environment
{
  "local_name": "next",
  "alias": false,
  "peer_metadata": null
}
^4.1.0runtime
nodemailer
Environment
{
  "local_name": "nodemailer",
  "alias": false,
  "peer_metadata": null
}
^4.4.1runtime
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^16.0.0runtime
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^16.0.0runtime
superagent
Environment
{
  "local_name": "superagent",
  "alias": false,
  "peer_metadata": null
}
^3.8.0runtime
toys
Environment
{
  "local_name": "toys",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
babel-cli
Environment
{
  "local_name": "babel-cli",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development
babel-plugin-transform-es2015-parameters
Environment
{
  "local_name": "babel-plugin-transform-es2015-parameters",
  "alias": false,
  "peer_metadata": null
}
^6.24.1development
babel-plugin-transform-object-rest-spread
Environment
{
  "local_name": "babel-plugin-transform-object-rest-spread",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development
babel-preset-env
Environment
{
  "local_name": "babel-preset-env",
  "alias": false,
  "peer_metadata": null
}
^1.6.1development
babel-preset-es2015
Environment
{
  "local_name": "babel-preset-es2015",
  "alias": false,
  "peer_metadata": null
}
^6.24.1development
babel-preset-stage-0
Environment
{
  "local_name": "babel-preset-stage-0",
  "alias": false,
  "peer_metadata": null
}
^6.24.1development
babel-register
Environment
{
  "local_name": "babel-register",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^21.2.1development
superagent-mock
Environment
{
  "local_name": "superagent-mock",
  "alias": false,
  "peer_metadata": null
}
^3.6.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "212a82a5abb7c236180a93c0706e8d725c76e6a8",
  "tarball": "https://registry.npmjs.org/3nit-utils/-/3nit-utils-0.10.4.tgz",
  "fileCount": 19,
  "unpackedSize": 41263,
  "integrity": "sha512-zXLyMk+EWvlZ/wFxTh1tNACPvBn6JKrATH3o40Mz3dplBAe3qxUuqIx0/bKa2WmiV1HNe2rLErrseNuEbUeDbQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDSjE+TuC78ZODOtI0lWMa6cFA0+C0w73P9oAOt2l8YUQIgKna0sTxUByEcuER4a3tq0DpOuW90GbCLdvxoFyTEFnQ="
    }
  ]
}

Repository

PENDING
trinit/3nit-utils

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ebb782cddd9574abfed33d31bd5113b2e60b4cda1520894ba52887102056beec

Other collected versions

1.0.218 Apr1.0.118 Apr1.0.018 Apr0.30.025 Sept0.29.024 Sept0.28.224 SeptView all collected versions →