https://github.com/andreaspitzer/presets
🎛 Easily use shareable presets.
https://github.com/andreaspitzer/presets
Last synced: 12 months ago
JSON representation
🎛 Easily use shareable presets.
- Host: GitHub
- URL: https://github.com/andreaspitzer/presets
- Owner: andreaspitzer
- License: mit
- Created: 2017-10-21T15:18:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T08:12:13.000Z (over 7 years ago)
- Last Synced: 2025-06-12T18:16:31.948Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# presets
[](https://travis-ci.org/AndreasPizsa/presets)
[](https://codecov.io/gh/AndreasPizsa/presets)
[](https://github.com/sindresorhus/xo)
[](https://github.com/prettier/prettier)
[](https://lass.js.org)
[](LICENSE)
> Easily load shareable presets. Supports `extends`.
## Table of Contents
* [Install](#install)
* [Usage](#usage)
* [kebab-case and camelCase](#kebab-case-and-camelcase)
* [Contributors](#contributors)
* [License](#license)
## Install
[npm][]:
```sh
npm install presets
```
[yarn][]:
```sh
yarn add presets
```
## Usage
#### From package.json
```js
const loadPresets = require('presets');
const presets = new loadPresets('./package.json');
```
#### From shared presets
```js
const loadPresets = require('presets');
const presets = new loadPresets('presets-my-awesome-settings');
```
#### from a package.json
```js
const pkg = require('./package.json')
const presets = new loadPresets(pkg.xo);
```
### kebab-case and camelCase
`presets` can automatically lookup file names to camelCase and kebab-case.
## Contributors
| Name | Website |
| ----------------- | --------------------------------- |
| **Andreas Pizsa** | |
## License
[MIT](LICENSE) © [Andreas Pizsa](https://github.com/AndreasPizsa)
##
[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/