{"id":23116084,"url":"https://github.com/blitzbanana/vantage-es6-contextified-repl","last_synced_at":"2026-05-09T14:16:37.078Z","repository":{"id":57390757,"uuid":"110514162","full_name":"BlitzBanana/vantage-es6-contextified-repl","owner":"BlitzBanana","description":"Contextified REPL module for Vantage with ES6 support","archived":false,"fork":false,"pushed_at":"2017-12-16T17:06:32.000Z","size":515,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:51:40.319Z","etag":null,"topics":["babel","context","es6","repl","vantage","vantage-repl","vorpal","yarn"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlitzBanana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-13T07:26:15.000Z","updated_at":"2017-11-14T13:00:05.000Z","dependencies_parsed_at":"2022-09-01T16:02:16.627Z","dependency_job_id":null,"html_url":"https://github.com/BlitzBanana/vantage-es6-contextified-repl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlitzBanana%2Fvantage-es6-contextified-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlitzBanana%2Fvantage-es6-contextified-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlitzBanana%2Fvantage-es6-contextified-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlitzBanana%2Fvantage-es6-contextified-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlitzBanana","download_url":"https://codeload.github.com/BlitzBanana/vantage-es6-contextified-repl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247104491,"owners_count":20884243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","context","es6","repl","vantage","vantage-repl","vorpal","yarn"],"created_at":"2024-12-17T04:10:57.980Z","updated_at":"2026-05-09T14:16:37.039Z","avatar_url":"https://github.com/BlitzBanana.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vantage REPL - ES6 \u0026 Context\n\n[![NPM](https://nodei.co/npm/vantage-es6-contextified-repl.png)](https://nodei.co/npm/vantage-es6-contextified-repl/)\n\n[![Build Status](https://travis-ci.org/BlitzBanana/vantage-es6-contextified-repl.svg?branch=master)](https://travis-ci.org/BlitzBanana/vantage-es6-contextified-repl)\n[![code coverage](https://img.shields.io/codecov/c/github/blitzbanana/vantage-es6-contextified-repl.svg)](https://codecov.io/gh/blitzbanana/vantage-es6-contextified-repl)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/blitzbanana/vantage-es6-contextified-repl.svg)](LICENSE)\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n  * [Options](#options)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install vantage-es6-contextified-repl\n```\n\n[yarn][]:\n\n```sh\nyarn add vantage-es6-contextified-repl\n```\n\n\n## Usage\n\n```js\nimport Vantage from 'vantage'\nimport repl from 'vantage-es6-contextified-repl'\nimport chalk from 'chalk'\nimport figlet from 'figlet'\n\nnew Vantage()\n  .use(repl, {\n    delimiter: chalk.red('repl:'),\n    description: 'Server REPL with access to app and db objects !',\n    banner: 'Have fun !',\n    context: { infos, app, db },\n    formatter: 'highlight'\n  })\n  .banner(figlet.textSync('MAIN SERVER'))\n  .delimiter(chalk.green('main-server~$'))\n  .listen(8080)\n  .show()\n```\n\n\u003cimg src=\"screenshot.gif\" max-width=\"980\"\u003e\n\n### Options\n\n* `mode` - the command to type to enter in REPL mode, default to `repl`.\n* `description` - the mode description displayed in help menu, default to `Enters REPL mode.`.\n* `banner` - the welcome message displayed when entrering in REPL mode, default to: `Entering REPL Mode. To exit, type 'exit'`.\n* `delimiter` - the additional delimiter of the mode, default to `repl:`.\n* `timeout` - the maximum amout of time to eval the code, default to `15000`.\n* `context` - the REPL context, accessible from evalued code, default to `{}`.\n* `compiler` - the code transformation functon, set `null` or a functon using signature `function(code:string)` and that returns a `string`, the default function uses Babel.\n* `formatter` - the output transformation functon, set `highlight`, `none` or a functon using signature `function(input:string)` and that returns a `string`, default to `highlight`.\n\n\u003e TODO: Multiline input support\n\u003e\n\u003e TODO: Make an option to use a custom or predefined theme for `highlight` formatter\n\n\n## Contributors\n\n| Name                       |\n| -------------------------- |\n| **Victor Rebiard--Crépin** |\n\n\n## License\n\n[MIT](LICENSE) © Victor Rebiard--Crépin\n\n\n## \n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitzbanana%2Fvantage-es6-contextified-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblitzbanana%2Fvantage-es6-contextified-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitzbanana%2Fvantage-es6-contextified-repl/lists"}