NatLibFi/marc-record-js

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
    "name": "@natlibfi/marc-record",
    "description": "MARC record implementation in JavaScript",
    "contributors": [
        {
            "name": "The National Library of Finland"
        },
        {
            "name": "Pasi Tuominen",
            "email": "pasi.tuominen@gmail.com"
        }
    ],
    "keywords": [
        "library",
        "libraries",
        "bibliography",
        "bibliographic"
    ],
    "homepage": "https://github.com/natlibfi/marc-record-js",
    "bugs": {
        "url": "https://github.com/natlibfi/marc-record-js/issues"
    },
    "repository": {
        "type": "git",
        "url": "git@github.com:natlibfi/marc-record-js.git"
    },
    "license": "MIT",
    "version": "8.1.1",
    "main": "./dist/index.js",
    "engines": {
        "node": ">=14"
    },
    "publishConfig": {
        "access": "public"
    },
    "scripts": {
        "prepare": "npm run build",
        "lint": "eslint src",
        "lint:dev": "eslint --fix src",
        "test:base": "cross-env NODE_ENV=test mocha --require @babel/register --reporter-option maxDiffSize=15000 src/*.spec.js",
        "test": "npm run lint && npm run test:base",
        "test:dev": "clear && npm run lint:dev && npm run coverage",
        "coverage": "npm run coverage:unit && npm run coverage:report",
        "coverage:unit": "nyc --silent npm run test:base",
        "coverage:report": "nyc report --reporter=text",
        "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
        "dev:test": "cross-env DEBUG=@natlibfi/* NODE_ENV=test nodemon -w src -w test-fixtures --exec 'npm run test:dev'"
    },
    "dependencies": {
        "debug": "^4.3.4",
        "jsonschema": "^1.4.1"
    },
    "devDependencies": {
        "@babel/cli": "^7.24.1",
        "@babel/core": "^7.24.4",
        "@babel/node": "^7.23.9",
        "@babel/plugin-transform-runtime": "^7.24.3",
        "@babel/preset-env": "^7.24.4",
        "@babel/register": "^7.23.7",
        "@natlibfi/eslint-config-melinda-backend": "^3.0.4",
        "@natlibfi/fixugen": "^2.0.4",
        "@natlibfi/fixura": "^3.0.4",
        "babel-plugin-istanbul": "^6.1.1",
        "chai": "^4.4.1",
        "cross-env": "^7.0.3",
        "eslint": "^8.57.0",
        "mocha": "^10.4.0",
        "nodemon": "^3.1.0",
        "nyc": "^15.1.0"
    },
    "eslintConfig": {
        "extends": "@natlibfi/melinda-backend"
    },
    "babel": {
        "plugins": [
            [
                "@babel/transform-runtime"
            ]
        ],
        "presets": [
            [
                "@babel/preset-env",
                {
                    "targets": [
                        "defaults",
                        "maintained node versions"
                    ]
                }
            ]
        ],
        "env": {
            "test": {
                "plugins": [
                    "istanbul"
                ]
            }
        }
    },
    "nyc": {
        "exclude": [
            "*/*.spec.js"
        ],
        "reporter": [
            "lcov",
            "html"
        ],
        "require": [
            "@babel/register"
        ],
        "sourceMap": false,
        "instrument": false,
        "lines": 100,
        "statements": 100,
        "functions": 100,
        "branches": 100
    }
}