Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flex-plugin

Package Overview
Dependencies
Maintainers
1
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugin - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

LICENSE

8

package.json
{
"name": "flex-plugin",
"version": "0.1.2",
"version": "0.1.3",
"description": "Runtime for Flex Plugins",

@@ -10,4 +10,4 @@ "keywords": [

"author": "Dominik Kundel <dkundel@twilio.com>",
"homepage": "",
"license": "ISC",
"homepage": "https://github.com/twilio/flex-plugin-builder",
"license": "MIT",
"main": "dist/flex-plugin.js",

@@ -33,3 +33,3 @@ "directories": {

},
"gitHead": "aab2e10744902998d4cba38680ef8d134fe888d0"
"gitHead": "990196b256560cf5315400f38cfd3d7fc8f06e56"
}

@@ -1,11 +0,56 @@

# `@twilio/flex-plugin`
![npm](https://img.shields.io/npm/v/flex-plugin.svg?style=flat-square)
![npm](https://img.shields.io/npm/dt/flex-plugin.svg?style=flat-square)
[![NpmLicense](https://img.shields.io/npm/l/flex-plugin.svg?style=flat-square)](LICENSE.md)
> TODO: description
# `flex-plugin`
Library to help building [Twilio Flex](https://www.twilio.com/flex) Plugins.
## Installation
```bash
npm install flex-plugin
```
## Usage
```js
import { loadPlugin, FlexPlugin } from 'flex-plugin';
class MyPlugin extends FlexPlugin {
pluginName = 'MyPlugin';
init(flex, manager) {
// setup your flex
flex.TaskCanvas.Content.add(<p>Hello</p>);
}
}
loadPlugin(MyPlugin);
```
import flexPlugin from '@twilio/flex-plugin';
// TODO: DEMONSTRATE API
## Contributing
Make sure to follow the instructions in the [main repository](https://github.com/twilio/flex-plugin-builder#contributing) to setup the project
```bash
# Install dependencies and link local packages with each other
cd packages/flex-plugin
npx lerna bootstrap
# Run tests
npm test
# To use your local package in a different project
npm link
# then in a different project
npm link flex-plugin
```
## Contributors
Thank you to all the lovely contributors to this project. Please check the main repository to see [all contributors](https://github.com/twilio/flex-plugin-builder#contributors).
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc