Skip to content

Commit

Permalink
Improve tagline
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 22, 2017
1 parent cac7e5c commit dc75c3f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
6 changes: 3 additions & 3 deletions fixture.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';
const assert = require('assert');
const electron = require('electron');
const Config = require('./');
const Config = require('.');

// prevent Electron from never exiting when an exception happens
// Prevent Electron from never exiting when an exception happens
process.on('uncaughtException', err => {
console.error('Exception:', err);
process.exit(1); // eslint-disable-line
Expand All @@ -17,7 +17,7 @@ assert.equal(config.get('unicorn'), '🦄');
config.delete('unicorn');
assert.equal(config.get('unicorn'), undefined);

// to be checked in AVA
// To be checked in AVA
config.set('ava', '🚀');

console.log(config.path);
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-config",
"version": "1.0.0",
"description": "Simple config handling for your Electron app or module",
"description": "Simple config handling for your Electron app or module - Persist user preferences, app state, cache, etc",
"license": "MIT",
"repository": "sindresorhus/electron-config",
"author": {
Expand Down Expand Up @@ -41,13 +41,9 @@
"xo": "*"
},
"xo": {
"esnext": true,
"envs": [
"node",
"browser"
],
"rules": {
"import/no-extraneous-dependencies": "off"
}
]
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# electron-config [![Build Status: Linux and macOS](https://travis-ci.org/sindresorhus/electron-config.svg?branch=master)](https://travis-ci.org/sindresorhus/electron-config) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/m2m9o6gq77xxi2eg/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/electron-config/branch/master)

> Simple config handling for your [Electron](http://electron.atom.io) app or module
> Simple data handling for your [Electron](https://electron.atom.io) app or module - Persist user preferences, app state, cache, etc
Electron doesn't have a built-in way to persist user settings and other data. This module handles that for you, so you can focus on building your app. Config is saved in a JSON file in [`app.getPath('userData')`](http://electron.atom.io/docs/api/app/#appgetpathname).
Electron doesn't have a built-in way to persist user settings and other data. This module handles that for you, so you can focus on building your app. The data is saved in a JSON file in [`app.getPath('userData')`](http://electron.atom.io/docs/api/app/#appgetpathname).

You can use this module directly in both the main and renderer process.

Expand Down

0 comments on commit dc75c3f

Please sign in to comment.