# admin-config

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

Latest version **0.12.4** (published 2017-12-15) · 0 weekly downloads

## Install

```sh
npm install admin-config
pnpm add admin-config
yarn add admin-config
bun add admin-config
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.12.4 |
| Published | 2017-12-15 |
| First published | 2015-05-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Maintainers | floo51, zaninottof, fzaninotto, emmanuelquentin |

## Links

- npm: https://www.npmjs.com/package/admin-config
- Repository: https://github.com/marmelab/admin-config
- Homepage: https://github.com/marmelab/admin-config#readme
- Issues: https://github.com/marmelab/admin-config/issues
- npm.io page: https://npm.io/package/admin-config

## Recent versions

- 0.12.4 (latest) — 2017-12-15
- 0.12.3 — 2017-12-15
- 0.12.2 — 2017-04-05
- 0.12.1 — 2016-09-02
- 0.12.0 — 2016-05-25
- 0.11.1 — 2016-05-25
- 0.11.0 — 2016-02-14
- 0.10.0 — 2016-01-19
- 0.9.1 — 2015-12-11
- 0.9.0 — 2015-12-10
- 0.8.0 — 2015-11-19
- 0.7.1 — 2015-11-10
- 0.6.1 — 2015-11-01
- 0.6.0 — 2015-10-30
- 0.5.1 — 2015-10-02
- … 35 more at https://npm.io/package/admin-config/versions

## README

# admin-config [![Build Status](https://travis-ci.org/marmelab/admin-config.svg?branch=master)](https://travis-ci.org/marmelab/admin-config)

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

## Installation

```sh
make install
```

## Including In Another Library

Require whatever class you need directly.

```js
// 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](http://webpack.github.io/) and [babel](https://babeljs.io/)). Here is an example Webpack configuration:

```js
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:

``` sh
make transpile
```

And you are done!

## Running Tests

```sh
make test
```

---
_Source: https://npm.io/package/admin-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
