This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including @form8ion/add-package-to-monorepo
with all npm
packages installed. Try it out:
// #### Import
// remark-usage-ignore-next
import stubbedFs from 'mock-fs';
import yargs from 'yargs';
import {hideBin} from 'yargs/helpers';
import {scaffold} from './lib/index.js';
// remark-usage-ignore-next
stubbedFs();
// #### Register with yargs
yargs(hideBin(process.argv))
.scriptName('form8ion-utils')
.usage('Usage: $0 <cmd> [args]')
.command('add-package', 'Add a JavaScript package to an existing monorepo', () => scaffold({
decisions: {},
overrides: {copyrightHolder: 'Foo Bar'}
}))
.help('h')
.alias('h', 'help')
.argv;
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.