TODO: logo TODO: badges
tradeship statically analyzes your code for identifiers that aren't defined and finds the appropriate dependencies to import. It also removes imports that aren't used. tradeship is meant to be used as an editor plugin that manages your imports.
TODO: screenshot
const { readFile } = require("fs");).require() or import
syntax.Install tradeship using npm or yarn. It's recommended to either install
tradeship globally or make the local installation available on your path (e.g.
by adding export PATH=node_modules/.bin:$PATH to your shell configuration),
since editor plugins make use of the tradeship executable.
$ npm install -g tradeship# or use yarn: $ yarn global add tradeshipThen, install the editor plugin of your choice:
tradeship-vimtradeship-atomtradeship-sublimetradeship-emacsEach editor plugin has instructions on how to run tradeship on the current file being edited. You can also configure each plugin to run tradeship on save. See the respective links above for more information.
The first time tradeship runs in a project directory with many JavaScript files, it'll take some time to parse and cache dependencies. Future runs will be much faster.
TODO: cli docs
TODO: configuration
TODO: how it works
TODO: license LICENSE