Skip to main content

apiverve_cronparser 1.2.2 copy "apiverve_cronparser: ^1.2.2" to clipboard
apiverve_cronparser: ^1.2.2 copied to clipboard

Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five [...]

Cron Expression Parser API - Dart/Flutter Client #

Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five execution timestamps.

pub package License: MIT

This is the Dart/Flutter client for the Cron Expression Parser API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_cronparser: ^1.2.2

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_cronparser/apiverve_cronparser.dart';

void main() async {
  final client = CronparserClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'expression': '0 9 * * 1-5'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "expression": "0 9 * * 1-5",
    "isValid": true,
    "format": "5-field",
    "fields": {
      "second": {
        "expression": "0",
        "description": "At 0",
        "values": [
          0
        ]
      },
      "minute": {
        "expression": "0",
        "description": "At 0",
        "values": [
          0
        ]
      },
      "hour": {
        "expression": "9",
        "description": "At 9",
        "values": [
          9
        ]
      },
      "dayOfMonth": {
        "expression": "*",
        "description": "Every",
        "values": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31
        ]
      },
      "month": {
        "expression": "*",
        "description": "Every",
        "values": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12
        ]
      },
      "dayOfWeek": {
        "expression": "1-5",
        "description": "From 1 to 5",
        "values": [
          1,
          2,
          3,
          4,
          5
        ]
      }
    },
    "description": "At 9:00 AM on Monday, Tuesday, Wednesday, Thursday, Friday",
    "frequency": {
      "type": "Daily",
      "interval": "day"
    },
    "nextRuns": [
      "2026-02-19T09:00:00.000Z",
      "2026-02-20T09:00:00.000Z",
      "2026-02-21T09:00:00.000Z",
      "2026-02-24T09:00:00.000Z",
      "2026-02-25T09:00:00.000Z"
    ]
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
120
points
82
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five execution timestamps.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_cronparser