Nonchalantly Performs Magic

    bs-ad-convertor

    1.0.3 • Public • Published

    BS-AD-Convertor

    Node module to convert Nepali date to English date and vice-versa

    Installation:

    #!javascript
    
    npm install -g bs-ad-convertor //(for global)
    npm install bs-ad-convertor //(for local)
    

    Uses:

    #!javascript
    
    var dateconvertor=require("bs-ad-convertor");
        
    
    console.log(dateconvertor.check_leapyear(2001)); // returns 'false' and if year is leap year it returns 'true'
    console.log(dateconvertor.get_nepali_month(6)); // returns 'Ashwin'
    console.log(dateconvertor.get_english_month(6));// returns 'June'
    console.log(dateconvertor.return_day_name(6));//returns 'Friday' 
    
    
    console.log(dateconvertor.eng_to_nep(1989,05,17)); 
    /* returns
    { year: 2046,
      month: 2,
      date: 4,
      day: 'Wednesday',
      nmonth: 'Jestha',
      num_day: 4 } */
    
    console.log(dateconvertor.nep_to_eng(2046,02,04));
    /*returns
    { year: 1989,
      month: 5,
      date: 17,
      day: 'Wednesday',
      nmonth: 'May',
      num_day: 4 }*/
    
    

    Install

    npm i bs-ad-convertor

    DownloadsWeekly Downloads

    5

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • sajanshakya129