npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

fim

1.1.0 • Public • Published

Fim Build Status

Deprecated

Test private method easy.

Install

$ npm install fim --save-dev

Usage

Imagine foo.js is a file to test.

//foo.js
 
module.exports = foo;
 
// @public
function foo() {
  console.log('foo')
}
 
// @private
function bar() {
  console.log('bar')
}

To test private method bar:

var fim = require('fim');
var foo = fim('./foo');
 
var bar = foo.__get__('bar');
 

install

npm i fim

Downloadsweekly downloads

3

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability