Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

admin-config

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admin-config

Common files used in both [ng-admin](https://github.com/marmelab/ng-admin) and [react-admin](https://github.com/marmelab/react-admin).

  • 0.12.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
101
increased by27.85%
Maintainers
4
Weekly downloads
 
Created
Source

admin-config Build Status

Common files used in both ng-admin and react-admin.

Installation

make install

Including In Another Library

Require whatever class you need directly.

// es5
var NumberField = require('admin-config/lib/Field/NumberField');
// es6
import NumberField from "admin-config/lib/Field/NumberField";

Admin-config is written in ES6. You'll need a transpiler to use any of the classes (we recommend Webpack and babel). Here is an example Webpack configuration:

module.exports = {
    // ...
    module: {
        loaders: [
            { test: /node_modules\/admin-config\/.*\.js$/, loader: 'babel' }
        ]
    }
};

Transpiling

In order to increase this library compatibility and to not force other users of this library to use Babel, you need to transpile your ES6 code from src/ to good old ES5 code (in lib/).

Just run:

make transpile

And you are done!

Running Tests

make test

FAQs

Package last updated on 15 Dec 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc