jsonpath-mapper
Version:
A json to json transformation utility with a few nice features to use when translating for example API responses into a domain object for use in your domain-driven JavaScript applications. Can be used in React applications with the 'useMapper' hook.
83 lines (82 loc) • 2.41 kB
JSON
{
"name": "jsonpath-mapper",
"version": "2.0.3",
"description": "A json to json transformation utility with a few nice features to use when translating for example API responses into a domain object for use in your domain-driven JavaScript applications. Can be used in React applications with the 'useMapper' hook.",
"main": "dist/jsonpath-mapper.cjs.js",
"module": "dist/jsonpath-mapper.js",
"types": "dist/jsonpath-mapper.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/jsonpath-mapper.d.ts",
"default": "./dist/jsonpath-mapper.mjs"
},
"require": {
"types": "./dist/jsonpath-mapper.d.ts",
"default": "./dist/jsonpath-mapper.cjs.js"
},
"types": "./dist/jsonpath-mapper.d.ts",
"default": "./dist/jsonpath-mapper.cjs.js"
}
},
"docs": "https://github.com/dchester/jsonpath/blob/master/README.md",
"scripts": {
"build": "rimraf ./dist && rollup -c",
"prestart": "npm run build",
"start": "npm run test",
"test": "mocha tests/json-mapper.tests.mjs",
"lint": "eslint ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/neilflatley/jsonpath-mapper.git"
},
"keywords": [
"jsonpath",
"jpath",
"json mapper",
"json transformation",
"json transformer",
"json to json",
"json2json",
"object mapping",
"prop mapping",
"json",
"mapper",
"mapping",
"transform",
"transformer",
"format",
"formatting",
"mapping hook",
"usemapper",
"use mapper"
],
"author": "Neil Flatley",
"license": "ISC",
"bugs": {
"url": "https://github.com/neilflatley/jsonpath-mapper/issues"
},
"homepage": "https://github.com/neilflatley/jsonpath-mapper#readme",
"dependencies": {
"fromentries": "^1.3.2",
"jsonpath-plus": "^10.2.0"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@rollup/plugin-typescript": "^12.1.1",
"chai": "^5.1.2",
"eslint": "^9.15.0",
"eslint-plugin-mocha": "^10.5.0",
"globals": "^15.12.0",
"mocha": "^10.8.2",
"prettier": "^3.4.1",
"rimraf": "^6.0.1",
"rollup": "^4.27.4",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-node-resolve": "^5.2.0",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
}