UNPKG

object-pickby

Version:

Creates an object composed of the picked object properties. Written in Typescript for ES2022+ environments.

66 lines (65 loc) 2.15 kB
{ "name": "object-pickby", "version": "2.1.0", "description": "Creates an object composed of the picked object properties. Written in Typescript for ES2022+ environments.", "keywords": [ "lodash-es", "lodash-modularized", "object", "only", "pick", "pickby" ], "homepage": "https://github.com/tinovyatkin/object-pick#readme", "bugs": { "url": "https://github.com/tinovyatkin/object-pick/issues" }, "license": "MIT", "author": "Konstantin Vyatkin <tino@vtkn.io>", "repository": { "type": "git", "url": "git+https://github.com/tinovyatkin/object-pick.git" }, "files": [ "dist/**/*.cjs", "dist/**/*.cjs.map", "dist/**/*.d.ts", "dist/**/*.js", "dist/**/*.js.map" ], "type": "module", "sideEffects": false, "main": "./dist/cjs/index.cjs", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "exports": { ".": { "types": "./dist/esm/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.cjs", "default": "./dist/esm/index.js" } }, "scripts": { "prepare": "lefthook install", "prebuild": "rm -rf dist", "build": "tsc --module es2022 --moduleResolution node --outDir ./dist/esm && tsc --module commonjs --moduleResolution node --outDir ./dist/cjs", "postbuild": "mv ./dist/cjs/index.js ./dist/cjs/index.cjs && mv ./dist/cjs/index.js.map ./dist/cjs/index.cjs.map", "lint": "oxlint --type-aware ./src", "format": "oxfmt --write .", "format:check": "oxfmt --check .", "prepublishOnly": "npm test && npm run build", "test": "node --test --experimental-strip-types --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=spec --test-reporter-destination=stdout --test-coverage-include=src/**/*.ts ./__tests__/*.test.ts" }, "devDependencies": { "@types/node": "24.x", "lefthook": "2.0.15", "oxfmt": "0.26.0", "oxlint": "1.41.0", "oxlint-tsgolint": "0.11.1", "typescript": "5.9.3" }, "engines": { "node": ">=12.4" } }