{"name":"@ionic/cli-framework","version":"1.0.0-testing.fa20842b","description":"The foundation framework of the Ionic CLI","homepage":"https://ionicframework.com/","author":{"name":"Ionic Team","email":"hi@ionic.io","url":"https://ionicframework.com"},"main":"./index.js","types":"./index.d.ts","engines":{"node":">=6.4.0"},"scripts":{"clean":"rimraf index.* definitions.* guards.* lib utils","lint":"tslint --config tslint.js --project tsconfig.json","build":"npm run clean && tsc","watch":"tsc -w","test":"jest","prepublishOnly":"npm run build"},"license":"MIT","dependencies":{"chalk":"^2.3.0","debug":"^3.1.0","lodash":"^4.17.5","minimist":"^1.2.0","ncp":"^2.0.0","rimraf":"^2.6.2","slice-ansi":"^1.0.0","string-width":"^2.1.1","strip-ansi":"^4.0.0","tslib":"^1.9.0","untildify":"^3.0.2","wrap-ansi":"^3.0.1"},"devDependencies":{"@types/debug":"0.0.30","@types/lodash":"^4.14.104","@types/minimist":"^1.2.0","@types/ncp":"^2.0.1","@types/node":"^6.0.101","@types/rimraf":"^2.0.2","@types/strip-ansi":"^3.0.0","@types/untildify":"^3.0.0","@types/wrap-ansi":"^3.0.0","jest":"^22.4.2","jest-cli":"^22.4.2","ts-jest":"^22.4.1","tslint":"^5.9.1","typescript":"~2.6.2"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json"}},"moduleFileExtensions":["ts","js"],"transform":{".(ts)":"<rootDir>/../../../node_modules/ts-jest/preprocessor.js"},"testRegex":"/__tests__/.*\\.(ts|js)$"},"readme":"# CLI Framework, by Ionic\n\nThe foundation framework of the Ionic CLI.\n\n## Getting Started\n\n`index.js`:\n```js\nconst { Command, CommandMap, Namespace, execute } = require('@ionic/cli-framework');\n\nclass VersionCommand extends Command {\n  async getMetadata() {\n    return {\n      name: 'version',\n      summary: 'Print CLI version',\n    };\n  }\n\n  async run() {\n    console.log('1.0.0');\n  }\n}\n\nclass RootNamespace extends Namespace {\n  async getMetadata() {\n    return {\n      name: 'mynewcli',\n      summary: 'A cool CLI that prints its own version',\n    };\n  }\n\n  async getCommands() {\n    return new CommandMap([['version', async () => new VersionCommand(this)]]);\n  }\n}\n\nmodule.exports = async function(argv, env) {\n  await execute({ namespace: new RootNamespace(), argv, env });\n}\n```\n\n`bin/mynewcli`:\n```javascript\n#!/usr/bin/env node\n\nconst run = require('../');\nrun(process.argv.slice(2), process.env);\n```\n\ncommand line:\n\n```bash\n$ ./bin/mynewcli\n$ ./bin/mynewcli version\n$ ./bin/mynewcli version --help\n```\n","readmeFilename":"README.md","_id":"@ionic/cli-framework@1.0.0-testing.fa20842b","_npmVersion":"5.8.0","_nodeVersion":"8.3.0","_npmUser":{"name":"nhyatt","email":"nick@ionic.io"},"dist":{"integrity":"sha512-IY1f0mBGT9O6YNNADNaa2Gd/awnuKk3h122i5QbbOhKe/uI8eubX7cBtuDsIA/eDWGrRNvX/slAS3osO5i0hFw==","shasum":"30c53ee3654b9a10f07ce0554c92c67d609344dc","tarball":"http://registry-npm.ywwl.com/@ionic/cli-framework/download/@ionic/cli-framework-1.0.0-testing.fa20842b.tgz","fileCount":47,"unpackedSize":105035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC28L+GbK+W2nAfvBBYl2ZXbh042/eVG7tlHJurWoJJ2AIgEop2p5I/MTrfw5OuzUkbdBpIx98vnBeNWqDlzjQmQEI="}],"size":21585,"noattachment":false,"key":"/@ionic/cli-framework/-/@ionic/cli-framework-1.0.0-testing.fa20842b.tgz"},"maintainers":[{"email":"hi+adam@ionicframework.com","name":"adamdbradley"},{"email":"brandy@ionic.io","name":"brandyscarney"},{"email":"max@drifty.com","name":"drifty"},{"email":"dwieeb@gmail.com","name":"dwieeb"},{"email":"rudy@ionic.io","name":"fuiste"},{"email":"hi@ionicframework.com","name":"ionicjs"},{"email":"jgw9617@gmail.com","name":"jgw96"},{"email":"jthoms1@gmail.com","name":"jthoms1"},{"email":"manu.mtza@gmail.com","name":"manucorporat"},{"email":"max@ionic.io","name":"maxlynch"},{"email":"mikehartington@gmail.com","name":"mhartington"},{"email":"nick@ionic.io","name":"nhyatt"},{"email":"perry@ionic.io","name":"perrygovier"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-framework_1.0.0-testing.fa20842b_1522965319892_0.3117128545296177"},"_hasShrinkwrap":false,"publish_time":1522965319990,"_cnpm_publish_time":1522965319990,"dist-tags":{"beta":"2.0.0-beta.3","canary":"1.0.0-alpha.0405736c","latest":"6.0.1","rc":"1.0.0-rc.13","testing":"5.1.4-testing.0"}}