Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

nice-registry

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-registry

A proxy to the npm registry that serves up nice package metadata.

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

nice-registry

A proxy to the npm registry that serves up nice package metadata.

Installation

npm install nice-registry --save

Configuration

The nice registry uses sensible defaults, but can be configured using environment variables.

Environment VariableDefault
NICE_CACHE_PATHpath.join(process.cwd(), '.cache'
NICE_GITHUB_ACCESS_TOKENundefined
NICE_CACHE_TTL_PACKAGES1 week
NICE_CACHE_TTL_REPOS1 week
NICE_CACHE_TTL_CONTRIBUTORS1 month
NICE_CACHE_TTL_DEPENDENTS1 month
NICE_CACHE_TTL_DOWNLOADS3 months
NICE_CACHE_TTL_OWNERS1 year

The nice registry allows caches to be configured granularly, as package and repo data change frequently while user profiles seldom change.

The TTL values are human intervals specifying "time to live", or how long each type of data can live in the cache before being refetched.

Tests

npm install
npm test

Dependencies

  • express: Fast, unopinionated, minimalist web framework
  • fs-extra: fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
  • human-interval: Human readable time measurements
  • isomorphic-fetch: Isomorphic WHATWG Fetch API, for Node & Browserify
  • lodash: Lodash modular utilities.
  • mkdirp: Recursively mkdir, like mkdir -p
  • nice-package: Clean up messy package metadata from the npm registry
  • registry-url: Get the set npm registry URL
  • serve-favicon: favicon serving middleware with caching

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • dependent-packages: Offline collection of the dependents and devDependents of every package in the npm registry.
  • mocha: simple, flexible, fun test framework
  • standard: JavaScript Standard Style
  • supertest: SuperAgent driven library for testing HTTP servers

License

MIT

FAQs

Package last updated on 01 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts