Catalog npm
Back to packageRELEASE DETAILS

0.9.2

npm

3nit-utils

NodeJS & React utils for 3nit projects

Published20 Dec 2017
Direct dependencies17
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 17

Native requirements
17 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
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": "ca1682ac49c94f12327c073a5bbb8e6632a3bfdc",
  "tarball": "https://registry.npmjs.org/3nit-utils/-/3nit-utils-0.9.2.tgz",
  "integrity": "sha512-zyn15NrKxOA+X6lBHeFyjGcvsrY4YdeVkk7aS1grjar6HslS83nCTYg09ytAFb7jP5YzglXtV3yQ0ThSdctG9g==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGQzDBf4dpLslADcGPp/2IbvQ9/bT3guNKlslGO3Uvg5AiAWnSMQWpzWyAkVWoITnSGXh7p8RGo0c12Sly+PVyBUvA=="
    }
  ]
}

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:91444eb3126ebf6d2db743d5f6fac55151e890dce55a9d9d0344873bdc9e2de3

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 →