UNPKG

to-typed

Version:

Type-guards, casts and converts unknowns into typed values

55 lines (54 loc) 1.67 kB
{ "type": "module", "name": "to-typed", "version": "0.5.2", "description": "Type-guards, casts and converts unknowns into typed values", "repository": { "type": "git", "url": "https://github.com/jsoldi/to-typed" }, "keywords": [ "type-guard", "type-cast", "type-convert" ], "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": { "<4.7": { "dist/types/*": [ "dist/types-4.2/*" ] } }, "exports": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "files": [ "dist" ], "scripts": { "build:clear": "node build-utils.js rf ./dist", "build:esm": "tsc", "build:cjs": "tsc --outDir ./dist/cjs --module commonjs && echo { \"type\": \"commonjs\" } > ./dist/cjs/package.json", "build:downlevel-dts": "downlevel-dts ./dist/types ./dist/types-4.2 --to=4.2", "build": "npm run build:clear && npm run build:cjs && npm run build:esm && npm run build:downlevel-dts", "test:clear": "node build-utils.js rf ./tests/dist", "test:build": "tsc --p ./tests/tsconfig.json", "test:run": "node ./tests/dist/tests/index.js", "test": "npm run test:clear && npm run test:build && npm run test:run", "demo:run": "node ./tests/dist/tests/demo.js", "demo": "npm run test:clear && npm run test:build && npm run demo:run", "start": "tsc && node ./dist/esm/playground.js" }, "author": "Juan Soldi", "license": "MIT", "devDependencies": { "@types/node": "~10.5.0", "downlevel-dts": "~0.10.0", "typescript": "~4.7.2" } }