@reuters-graphics/ejector

Eject a dependency's source files from your `node_modules` directly into your working directory.

Usage no npm install needed!

<script type="module">
  import reutersGraphicsEjector from 'https://cdn.skypack.dev/@reuters-graphics/ejector';
</script>

README

⏏️ EJECTOR

Eject a dependency's source files from your node_modules directly into your working directory.

npm version Reuters open source software

Why this?

TK.

Quickstart

$ yarn global add @reuters-graphics/ejector

CLI

Run ejector from the root of your project, and it will ask you which dependency you'd like to eject.

$ ejector

You can also supply a filter to limit the dependency options.

$ ejector -f @reuters-graphics

Module

import Ejector from '@reuters-graphics/ejector';

const ejector = new Ejector();

await ejector.eject();

// ... or with a filter
await ejector.eject('@reuters-graphics');

Testing

$ yarn build && yarn test