@zaeny/expose

1.0.3 • Public • Published

@zaeny/Expose

npm version npm downloads

Define and Expose REPL utiltiy

Utility Functions working with repl node.js, exposing function into global variable repl

Getting started

npm i @zaeny/expose

Usage

type node to create nodejs repl then type

var {expose, evaluate, define} = require('@zaeny/expose');

using it

 // all varibale available in globally to invoke
define('@zaeny/clojure.core');  // {map, filter, reduce, flatten, assoc, ....}

// exposing single files exposets into global avialbe in  repl
expose('./search/routes.js'); // all exported funciton declared here available to repl

//exposing all files in the directory
expose('./search/functions/'); // find all avaialable .js file in this directory and export it to global

// evaluate to repl keep preserving repl context
evaluate()(fs.readFileSync('./state.js', 'utf8'));

API

define,
expose,
evaluate

Related work

  • Composable - Collection of functions to solve programming problem

Changes

  • [1.0.0] add expose define and evaluate
  • [1.0.1] fix map,filter is not defined, seperate @zaeny/clojure.core
  • [1.0.3] refactor move repository to composable

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.30
1.0.12
1.0.02

Package Sidebar

Install

npm i @zaeny/expose

Weekly Downloads

4

Version

1.0.3

License

GPL-3.0

Unpacked Size

4.86 kB

Total Files

4

Last publish

Collaborators

  • azizzaeny