Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

kollavarsham/kollavarsham-nodejs

Repository files navigation

npm Travis Code Climate Code Climate David David

Convert Gregorian date to Kollavarsham date and vice versa

UPDATE (9/16/2015): This ES5 version of the library has been ported into an ES2015/ES6 version that is transcompiled by Babel at https://github.com/kollavarsham/kollavarsham-js. The core npm package will be published from that repo from here onwards.

Getting Started

Install the module with: npm install kollavarsham

Usage

var Kollavarsham = require('kollavarsham');

var options = {
  system: 'SuryaSiddhanta',
  latitude: 10,
  longitude: 76.2,
  outputFormat: 'verbose'
};

var kollavarsham = new Kollavarsham(options);

var todayInMalayalamEra = kollavarsham.fromGregorianDate(new Date());

var today = kollavarsham.toGregorianDate(todayInMalayalamEra);

Documentation

Click here to visit the API Documentation

CLI app

Check out the cli module (GitHub repo) for the kollavarsham cross-platform CLI app

npm install -g kollavarsham-cli

kollavarsham --help

Contributing

Check the Contributing guide.

Release History

Check out the history at GitHub Releases

License

Copyright (c) 2014-2015 The Kollavarsham Team. Licensed under the MIT license.