class-autobind-decorator
Version:
A small framework-agnostic utility for auto-binding "class" methods to instances (with customization options) using either "legacy" decorator syntax or plain old ES5 (without needing ES2015+ polyfills).
42 lines (41 loc) • 1.34 kB
JSON
{
"name": "class-autobind-decorator",
"version": "3.0.1",
"description": "A small framework-agnostic utility for auto-binding \"class\" methods to instances (with customization options) using either \"legacy\" decorator syntax or plain old ES5 (without needing ES2015+ polyfills).",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "rm -rf ./build && ./node_modules/.bin/babel src -d build && cp ./src/index.d.ts ./build",
"test": "./node_modules/.bin/mocha --compilers js:babel-core/register -- test"
},
"keywords": [
"autobind",
"bind",
"class",
"decorator",
"prototype",
"react",
"es5",
"es6",
"es7",
"es2015"
],
"author": "Jason Rogers <jason@jmichaelrogers.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jmrog/class-autobind-decorator.git"
},
"bugs": "https://github.com/jmrog/class-autobind-decorator/issues",
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-core": "^6.14.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.14.0",
"chai": "^3.5.0",
"mocha": "^3.0.2"
}
}