Choose your language:
    List all plugins
    Returns
    Returns an array of plugin objects.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.plugins.all()
    .then((plugins) => {
    plugins.forEach((plugin) => {
    console.log(plugin);
    });
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "124",
    "name": "5 stars",
    "description": "A simple field editor that allows a nicer editing rating experience",
    "packageName": "datocms-plugin-star-rating-editor",
    "packageVersion": "0.0.4",
    "pluginType": "field_editor",
    "fieldTypes": [
    "integer",
    "float"
    ],
    "url": "https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js",
    "parameters": {
    "devMode": true
    },
    "parameterDefinitions": {
    "global": [
    {
    "id": "devMode",
    "type": "boolean",
    "label": "Run in development mode"
    }
    ],
    "instance": [
    {
    "id": "halfStars",
    "type": "boolean",
    "label": "Allow half stars ratings?",
    "default": false,
    "hint": "If enabled, rate using whole stars, if enabled, it doesn't use half-steps"
    },
    {
    "id": "totalStars",
    "type": "integer",
    "label": "Amount of stars to show",
    "default": 5,
    "hint": ""
    }
    ]
    }
    }