# atom-flags

> A script for modifing the web-preferences of your atom-editor.

Latest version **0.0.4** (published 2015-08-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install atom-flags
pnpm add atom-flags
yarn add atom-flags
bun add atom-flags
```

Provides the command `atom-flags`.

## 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.0.4 |
| Published | 2015-08-18 |
| First published | 2015-08-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Plutonist |
| Maintainers | plutonist |
| Keywords | atom |

## Links

- npm: https://www.npmjs.com/package/atom-flags
- Repository: https://github.com/wspl/atom-flags
- Homepage: https://github.com/wspl/atom-flags#readme
- Issues: https://github.com/wspl/atom-flags/issues
- npm.io page: https://npm.io/package/atom-flags

## Dependencies (5)

- [md5](https://npm.io/package/md5.md) ^2.0.0
- [asar](https://npm.io/package/asar.md) ^0.7.2
- [babel](https://npm.io/package/babel.md) ^5.8.21
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [readline-sync](https://npm.io/package/readline-sync.md) ^1.2.19

## Recent versions

- 0.0.4 (latest) — 2015-08-18
- 0.0.3 — 2015-08-18
- 0.0.2 — 2015-08-18
- 0.0.1 — 2015-08-18

## README

# atom-flags

A script for modifing the web-preferences(or chrome://flags) of your atom-editor via commandline.


## Why I need atom-flags?

As is well known, atom-editor cannot modify any flags option in all released versions. But there must be a lot of developers want to trim some options to ensure that atom can work better. For instance, if I intend to enable the MacType (a font-beautify plugin under Windows), I have to disable the `direct-write` option so that MacType can works normally.


## How does it works?

Developed by node.js via ES6/Babel and working at command line.
It was based on [atom/asar](https://github.com/atom/asar) project. First, extract the core asar file of atom to a temporary directory. Then modifing the web-preferences options in `/src/browser/atom-window.js` according to the user's command. Finally, it will repack a new asar file and overwrite the origin file. (A buckup made at the same time)


## Usage

```bash
// Install npm/node first
npm install -g atom-flags
atom-flags
```


In General, it will search the atom editor automatically for Windows users. If you are linux or OS X user, you should use the command "locate <path-to-app.asar>".


#### get <key>
Get a value by flag name.

#### set <key> <value>
Set the value of flag or create a new flag with value.

#### del <key>
Remove a flag.

#### list
Show all flags.

#### locate <path-to-app.asar>
Set a new location of `app.asar` file.

#### save
Save the `app.asar`.


## License

Apache-2.0

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