NatLibFi/xmlhttprequest-mock

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@natlibfi/xmlhttprequest-mock",
  "description": "Mock for XMLHttpRequest that works both in Browser and Node.js and can override globals",
  "author": {
    "name": "The National Library of Finland"
  },
  "keywords": [
    "xhr",
    "mock",
    "xml",
    "http",
    "request",
    "async",
    "client",
    "test",
    "fake",
    "net"
  ],
  "homepage": "https://github.com/natlibfi/xmlhttprequest-mock",
  "bugs": {
    "url": "https://github.com/natlibfi/xmlhttprequest-mock/issues"
  },
  "repository": {
    "type": "git",
    "url": "git@github.com:natlibfi/xmlhttprequest-mock.git"
  },
  "license": " LGPL-3.0+",
  "version": "2.0.2",
  "main": "lib/main",
  "scripts": {
    "lint": "jshint .",
    "test-nodejs": " istanbul cover --dir coverage/nodejs _mocha -- test/*.spec.js test/nodejs/*.spec.js",
    "test-browser": "npm run generate-requirejs-config && karma start",
    "test": "npm run test-nodejs && npm run test-browser",
    "cover-nodejs": "npm run test-nodejs && istanbul check-coverage coverage/nodejs/coverage.json",
    "cover-browser": "npm run test-browser && istanbul check-coverage coverage/browser/coverage-final.json",
    "cover": "npm run test && npm run combine-coverage && istanbul check-coverage coverage/combined/coverage-final.json",
    "check": "npm run lint && npm run cover",
    "travisci": "npm run check",
    "publish-to-npm": "npm install && npm run check && npm publish --access=public",
    "combine-coverage": "istanbul-combine -d coverage/combined -r html -r lcov -r json coverage/nodejs/coverage.json coverage/browser/coverage-final.json",
    "generate-requirejs-config": "requirejs-configurator --npm -D > test/browser/main.js"
  },
  "dependencies": {
    "@natlibfi/es6-polyfills": "^2.0.0"
  },
  "devDependencies": {
    "chai": "^3.2.0",
    "jshint": "^2.8.0",
    "mocha": "^2.3.2",
    "istanbul": "^0.4.2",
    "istanbul-combine": "^0.3.0",
    "karma": "^1.7.0",
    "karma-mocha": "^1.3.0",
    "karma-coverage": "^1.1.1",
    "karma-requirejs": "^1.1.0",
    "karma-phantomjs-launcher": "^1.0.4",
    "karma-requirejs-preprocessor": "^0.0.2",
    "phantomjs-prebuilt": "^2.1.14",
    "requirejs-configurator": "https://github.com/natlibfi-arlehiko/requirejs-configurator#peer-deps",
    "codeclimate-test-reporter": "^0.5.0",
    "requirejs": "^2.3.3"
  }
}