UNPKG

@nameof/nameof

Version:

A tiny utility for safely extracting property names from TypeScript objects — inspired by C#'s [`nameof`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/nameof) operator.

53 lines (52 loc) 1.11 kB
{ "name": "@nameof/nameof", "version": "1.0.0", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "exports": { ".": { "import": "./dist/index.js" } }, "scripts": { "build": "bun build.config.ts", "preversion": "bun test && bun run build", "release": "npm version patch && npm publish && git push && git push --tags" }, "keywords": [ "typescript", "nameof", "property", "type-safe", "refactor-safe", "utility", "literal-type", "keyof", "object-property", "bun", "ts" ], "author": "baboon-king", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/baboon-king/nameof.git" }, "bugs": { "url": "https://github.com/baboon-king/nameof/issues" }, "homepage": "https://github.com/baboon-king/nameof#readme", "devDependencies": { "@types/bun": "latest", "bun-dts": "^0.1.22" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" } }