coderpad-env-js

1.0.3 • Public • Published

coderpad-env-js

Runs a package-limited environment locally. Package list is modeled after coderpad.io.

Install

yarn add coderpad-env-js

Usage

Import the needed libraries.

const {
    async,
    bluebird,
    fetch,
    chai,
    sinonChai,
    sinon,
    mocha,
    lodash,
    underscore,
    ramda,
    jsdom,
} = require('./index');
 
// your code and tests, using available packages
 

You may omit uneeded libs and alias as desired. E.g., const _ = lodash; // OR const _ = underscore;

Expect

Type Name
object async
function bluebird
function fetch
object chai
function sinonChai
object sinon
function mocha
function lodash
function underscore
object ramda
object jsdom

Test your code locally

yarn run test-<test_lib_name>

Test on coderpad.io

TODO

  • Node.js script (plop) that generates a project with your choice of packages, instead of the redundant selection (bloat).

Package Sidebar

Install

npm i coderpad-env-js

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

34.8 kB

Total Files

7

Last publish

Collaborators

  • monte-hayward