npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-cron-jobs

v18.2.0

Published

This repository contains an Angular > 2 version of [angular-cron-jobs](http://angular-cron-jobs.github.io/angular-cron-jobs).

Downloads

4,360

Readme

ngx-cron-jobs

This repository contains an Angular > 2 version of angular-cron-jobs.

Installation

🎉 ngx-cron-jobs supports Angular 18 🎉

To install the latest version (18.2.0) of ngx-cron-jobs

$ npm install ngx-cron-jobs  --save

or

$ yarn add ngx-cron-jobs

This is a hacktoberfest friendly repository 🎃

Here are the following current enhancements

  • [X] Upgrade to Angular version 14
  • [X] UI support for every nth intervals (see https://github.com/yp2/ngx-cron-jobs/issues/54)
  • [ ] Supporting the year field (see https://github.com/yp2/ngx-cron-jobs/issues/32)

Other enhancements are very, very welcome as well!

- Happy hacking! 🥳


To install this library for Angular <=5, run:

$ npm install [email protected]  --save
$ yarn add [email protected]

where x.x is 4.9. Is should look like this 0.4.9. Line for Angular 5 will have major set to 0.

To install this library for Angular 6, run:

$ npm install [email protected]  --save
$ yarn add [email protected]

where x.x is 4.10. Is should look like this 6.4.10. Line for Angular 6 will have major set to 6.

To install this library for Angular 7, run:

$ npm install [email protected]  --save
$ yarn add [email protected]

where x.x is 4.10. Is should look like this 7.4.10 Line for Angular 6 will have major set to 6.

Consuming your library

and then from your Angular AppModule:

import { CronJobsModule } from 'ngx-cron-jobs';

@NgModule({
  imports: [
    ...,
    CronJobsModule,
    ...
  ]
})
export class AppModule { }

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<!-- To insert to in your component minimal config with ngModel -->
<cron-jobs [(ngModel)]="hero.frequency"></cron-jobs>

<!-- To insert to in your component minimal config with reactive forms -->
<cron-jobs [formControl]="freqControl"></cron-jobs>

<!-- To insert to in your component minimal config with reactive forms -->
<!-- additional parameters -->
<cron-jobs [formControl]="freqControl" [config]="cronConfig"  [validate]="cronValidate"></cron-jobs>

Configuration:

The component takes an input of [config] and [validate]

Options

Plugin maybe configured by config object to which should be pass in [config] input.

List of options:

| Option | Type | Description | | ------------- | --------------- | --------------------------------------------------------------------------------------------- | | quartz | boolean (false) | Use quartz syntax rather then cron syntax in control output | | multiple | boolean (false) | Enable multi select in plugin selects | | bootstrap | boolean (true) | Use bootstrap 4 html and css classes to build plugin forms | | option | object | Additional options | | option.minute | boolean (true) | remove (false) or add minute to plugin select to control user ability to set cron expression. | | option.hour | boolean (true) | remove (false) or add hour to plugin select to control user ability to set cron expression. | | option.day | boolean (true) | remove (false) or add day to plugin select to control user ability to set cron expression. | | option.week | boolean (true) | remove (false) or add week to plugin select to control user ability to set cron expression. | | option.month | boolean (true) | remove (false) or add month to plugin select to control user ability to set cron expression. | | option.year | boolean (true) | remove (false) or add year to plugin select to control user ability to set cron expression. |

Additional to this plugin supports validation config ([validate] input):

| Option | Type | Description | | -------- | --------------- | ----------------------------------------------- | | validate | boolean (false) | Add validation classes if controls are invalid. |

License

MIT © Daniel 'yp2' Derezinski

Contributors

From angular 1 project

@wowo

@immertreu

@TSteele27

@DmitryEfimenki

From angular2-cron-jobs project

@rvalenciano

From ngx-cron-jobs project

Daniel 'yp2' Derezinski

Mads 'madsthom' Smed