2.0.0 • Published 3 months ago

instant-replay v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 months ago

Usage

Command

$ node_modules/.bin/replay [options]

Script

package.json

{
  "scripts": {
    "replay": "replay [options]"
  },
  "dependencies": {
    "faker": "^4.1.0",
    "lodash": "^4.17.12"
  }
}

NPM

$ npm run replay

Yarn

$ yarn replay

Options

OptionAliasDescription
--version-vShow version number.
--help-hShow help.
--output-oSpecify output file, such as replay -o "./path/to/file.js". The default is ./bin/repl.js.

REPL

Run REPL

$ node ./bin/repl.js
>

See available dependencies

> deps
[ 'faker', 'lodash' ]
>

See available devDependencies

> devDeps
[ '' ]
>

Load dependency

> load('faker')
'+faker'
> faker.name.firstName()
'Jake'
>

Load dependency with alias

> load('lodash', '_')
'+_'
> _.add(1, 2)
3
> lodash.add(1, 2)
Thrown:
ReferenceError: lodash is not defined
>

Load Node modules

> load('fs')
'+fs'
> load('path')
'+path'
>

Unload dependencies/modules

> unload('faker', '_', 'fs', 'path')
'-faker, -_, -fs, -path'
>

Exit REPL

> exit
$

or

> quit
$

Installation

NPM

$ npm i -D instant-replay

Yarn

$ yarn add -D instant-replay
2.0.0

3 months ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago