🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@nowmade/date-picker-svelte

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nowmade/date-picker-svelte

Date and time picker for Svelte

latest
Source
npmnpm
Version
2.3.4
Version published
Maintainers
2
Created
Source

Date Picker Svelte

NPM License NPM Downloads test

Date and time picker for Svelte

Features:

  • Theming
  • Custom formats
  • Internationalization (i18n)
  • Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format)
  • Keyboard shortcuts

Demo • Documentation • REPL

Install

npm install date-picker-svelte

Usage

<script>
  import { DateInput } from 'date-picker-svelte'
  let date = new Date()
</script>

<DateInput bind:value={date} />

Check the docs to learn more

Contributing

Get started

  • Install Node.js (v14 works)
  • Run npm install

Commands

  • npm run dev: Start site in dev mode
  • npm run build: Build package and site
  • npm run preview: Preview production site
  • npm run check: Run svelte-check
  • npm run test: Run tests
  • npm run format: Format code

Publish new version

  • Update CHANGELOG.md
  • Check for errors
    npm run lint
    
  • Bump the version number
    npm version --no-git-tag <version>
    
  • Generate the package
    npm run build:package
    
  • Publish the package
    npm publish ./package
    
  • Commit with a tag in format "v#.#.#"
  • Create GitHub release with release notes

Keywords

date

FAQs

Package last updated on 16 Mar 2023

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