Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load option #4

Closed
wants to merge 2 commits into from
Closed

Load option #4

wants to merge 2 commits into from

Conversation

rejeep
Copy link

@rejeep rejeep commented May 8, 2015

With this change, you can add common code to to ~/.jku.js, so you don't have to write it every time.

For example:

global.prettyDate = function(timestamp) {
  return new Date(timestamp).toISOString().substring(0, 10);
};

global.uglyDate = function(timestamp) {
  return new Date(timestamp).toISOString().split('').reverse().join('');
};

You can also require any file with --require/-r.

rejeep added 2 commits May 8, 2015 16:52
Requires specifed file before executing task.
@rejeep
Copy link
Author

rejeep commented Feb 11, 2019

Cleaning up

@rejeep rejeep closed this Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant