@blumintinc/flatten-anything
Version:
Flatten objects and replace nested props with 'prop.subprop'. A simple and small integration
77 lines (76 loc) • 2.32 kB
JSON
{
"name": "@blumintinc/flatten-anything",
"version": "4.1.1",
"description": "Flatten objects and replace nested props with 'prop.subprop'. A simple and small integration",
"type": "module",
"sideEffects": false,
"main": "./dist-cjs/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist-cjs/index.cjs"
}
}
},
"engines": {
"node": ">=18"
},
"scripts": {
"test": "vitest run",
"lint": "tsc --noEmit && eslint ./src",
"build": "del-cli dist && tsc",
"build:cjs": "del-cli dist-cjs && rollup -c",
"finalize:mjs": "node -e \"const fs=require('fs'); if(fs.existsSync('dist/index.js')){fs.renameSync('dist/index.js','dist/index.mjs');console.log('Renamed dist/index.js to dist/index.mjs')}else{console.error('Error: dist/index.js not found for renaming.');process.exit(1)}\"",
"release": "npm run lint && npm run build && npm run build:cjs && npm run finalize:mjs && np"
},
"dependencies": {
"filter-anything": "^4.0.2",
"is-what": "^5.2.0"
},
"devDependencies": {
"@cycraft/eslint": "^0.4.3",
"@cycraft/tsconfig": "^0.1.2",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"copy-anything": "^4.0.2",
"del-cli": "^6.0.0",
"np": "^10.2.0",
"rollup": "^4.39.0",
"vitest": "^3.0.6"
},
"files": [
"dist",
"dist-cjs"
],
"keywords": [
"flatten",
"object",
"paths",
"pathify",
"flatten-object",
"flatten-paths",
"flatten-deep-object",
"flatten-nested-props",
"pathify-props",
"get-flat-object"
],
"author": "Luca Ban - Mesqueeb (https://cycraft.co)",
"funding": "https://github.com/sponsors/mesqueeb",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/BluMintInc/flatten-anything.git"
},
"homepage": "https://github.com/BluMintInc/flatten-anything#readme",
"bugs": "https://github.com/BluMintInc/flatten-anything/issues",
"publishConfig": {
"access": "public"
}
}