Catalog npm
Back to packageRELEASE DETAILS

0.10.1

npm

3nit-utils

NodeJS & React utils for 3nit projects

Published18 Jan 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": "46e629c206dcfa58317be860341bcb0dc1fe2485",
  "tarball": "https://registry.npmjs.org/3nit-utils/-/3nit-utils-0.10.1.tgz",
  "integrity": "sha512-+Kt9jHkXaH8j8FHEH6h0+DHXVThh9gyt+8/iU7CuGDR9MTdV4uJcPIaXUGpvmf0iFehvODkabXnkHnJCfn6h4g==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCukNKhGeRrHfvjVjbV7Tk/3rypUgXeeFhBFCTsvOI8YAIhANSowMHG4QajtFDP4+zEc1CBoAqpqQQ4mAEGPL82KTC/"
    }
  ]
}

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:3a67788d3ee01efd862b4bb6b66e8334e1bcbec2ff403f8d540a6a490a138b86

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 →