0.0.4 • Published 9 years ago

atom-flags v0.0.4

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
9 years ago

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 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

// 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

Get a value by flag name.

set

Set the value of flag or create a new flag with value.

del

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

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago