UNPKG

call-to-promise

Version:

A lightweight, production-ready, universal library for transforming callback-style functions into Promise-based ones. Works seamlessly across Node.js, Deno, and browsers.

58 lines (57 loc) 1.68 kB
{ "name": "call-to-promise", "version": "2.0.9", "description": "A lightweight, production-ready, universal library for transforming callback-style functions into Promise-based ones. Works seamlessly across Node.js, Deno, and browsers.", "main": "index.js", "types": "index.d.ts", "type": "commonjs", "files": [ "dist", "src", "types", "index.js", "index.d.ts", "indexBrowser.js" ], "scripts": { "build": "npm run build-types && npm run build-dist", "build-dist": "rm -rf ./dist/* && webpack --config webpack.umd.js --mode production && webpack --config webpack.module.js --mode production", "build-types": "rm -rf ./types/* && tsc", "deploy": "npm run lint && npm run publint && npm run build && npm run test", "lint": "goodparts src", "test": "mocha tests/**/*Test.js && deno run ./tests/moduleBuild.denotest.mjs", "lint-fix": "prettier --config .prettierrc.js -w src && eslint src --fix", "publint": "npx publint" }, "keywords": [ "promise", "callback", "async", "promise-wrapper", "callback-to-promise", "promisify", "universal", "typescript", "node", "deno", "browser" ], "repository": { "type": "git", "url": "git+https://github.com/dominikj111/call-to-promise.git" }, "author": "dominikj111", "license": "BSD-3-Clause", "devDependencies": { "@babel/preset-env": "^7.26.9", "chai": "^5.2.0", "clean-webpack-plugin": "^4.0.0", "eslint": "^9.22.0", "goodparts": "^1.3.0", "mocha": "^11.1.0", "prettier": "^3.5.3", "typescript": "^5.8.2", "webpack": "^5.98.0", "webpack-cli": "^6.0.1" } }