Numeric Production Mechanism
Miss any of our Open RFC calls?Watch the recordings here! »

hops-config

13.1.0 • Public • Published

Hops Config

npm

Please see the main Hops Readme for general information and a Getting Started Guide.

This is a package that exposes your applications configuration and is mostly here for legacy reasons. It has thus been deprecated as of version 12 of Hops and will be removed with the next major release.

Please use withConfig or useConfig to access the configuration inside your application's React components.

Inside mixins you can access the config through this.config.

Installation

Add this package as a dependency to your project:

npm install --save hops-config

If you don't already have an existing Hops project read this section on how to set up your first Hops project.

Usage

import / require this package to access the configuration that you are interested in.

import config from 'hops-config';
 
console.log(config.basePath);

Keywords

Install

npm i hops-config

DownloadsWeekly Downloads

894

Version

13.1.0

License

MIT

Unpacked Size

4.76 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar