Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

get-nepday-of-week

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-nepday-of-week

Get nepali day of week from Date object or index (with 0 for Sunday and so on)

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
162
-16.49%
Maintainers
1
Weekly downloads
 
Created
Source

get-nepday-of-week Build Status

Get nepali day of week from Date object or index (with 0 for Sunday and so on)

Install

$ npm install --save get-nepday-of-week

Usage

Note: If no argument is passed, the dayOfWeek for current day is returned.

var getNepdayOfWeek = require('get-nepday-of-week');

getNepdayOfWeek(new Date('2015/10/24'))
//=>{ full: 'शनिवार', short: 'शनि', min: 'श' }

getNepdayOfWeek({"lang": "en"})
//=>{ full: 'Aaitabaar', short: 'Aaita', min: 'Aai' }

getNepdayOfWeek(2)
//=>{ full: 'मगलवार', short: 'मगल', min: 'म' }

getNepdayOfWeek(1, {"lang": "ne", "type": "short"})
//=>सोम

getNepdayOfWeek(-2)
//=>[RangeError: Expected the value of inp between 0-6]

API

getNepdayOfWeek([input], [options])

input

Type: Date or Number

Range: 0-6 if Number with 0 for Sunday/Aaitabaar and so on.

options

lang

Type: string Default: ne

type

Type: string Possible values: full (eg. Aaitabaar), short (eg. Aaita), min (eg. Aai)

License

MIT © techgaun

Keywords

nepali

FAQs

Package last updated on 25 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts