laravel-config

0.0.3 • Public • Published

laravel-config

Adaptation of the Laravel JS config module implemented by andywer to be used as a module.

The advantage of using this module is that you can combine it with this babel plugin. The plugin will detect usages of this module in the JavaScript and build a JSON file containing the configuration keys, which can be used later to generate the data to be sent to the browser.

Installation

npm install laravel-config

Usage

import Config from 'laravel-config';

Config.addConfig({
    'config key': 'config value'
});

console.log(Config.get('config key')); // config value

Readme

Keywords

none

Package Sidebar

Install

npm i laravel-config

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • thiagorb