UNPKG

observable-callback

Version:

A small utility for simplified creation of callback functions that publishes the argument to an observable stream when called.

53 lines (52 loc) 1.58 kB
{ "name": "observable-callback", "version": "1.0.3", "description": "A small utility for simplified creation of callback functions that publishes the argument to an observable stream when called.", "main": "dist/cjs/observableCallback.js", "types": "dist/cjs/observableCallback.d.ts", "module": "dist/esm/observableCallback.js", "es2015": "dist/es2015/observableCallback.js", "scripts": { "test": "jest", "build": "npm run build:es2015 && npm run build:esm && npm run build:cjs", "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", "build:esm": "tsc --module es2015 --target es5 --outDir dist/esm", "build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", "clean": "rimraf dist", "prepublishOnly": "npm run build" }, "dependencies": {}, "devDependencies": { "@types/jest": "^28.1.1", "jest": "^28.1.1", "prettier": "^2.7.1", "rimraf": "^3.0.2", "rxjs": "^7.5.5", "ts-jest": "^28.0.5", "ts-node": "^10.8.1", "typescript": "^4.7.3" }, "peerDependencies": { "rxjs": "^6.5 || ^7" }, "keywords": [ "observable", "rxjs", "callback", "subject", "event-handler" ], "author": "Bjørge Næss <bjoerge@gmail.com>", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/bjoerge/observable-callback.git" }, "bugs": { "url": "https://github.com/bjoerge/observable-callback/issues" }, "homepage": "https://github.com/bjoerge/observable-callback#readme", "engines": { "node": ">=16" } }