0.2.1 • Published 1 year ago

chrono-format v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Chrono Strftime Validator

This package provides a utility function for validating an strftime format.

The project is built in Rust and compiles to WebAssembly using wasm-pack

Usage

const { is_valid_strftime_format } = require('chrono-format');

// returns true
is_valid_strftime_format('%FT%T') 
// returns false
is_valid_strftime_format('%QT%T') 

Build

wasm-pack build --target nodejs

Tests

wasm-pack test --node

🎁 Publish to NPM

wasm-pack publish

Acknowledgements

Built with 🦀🕸 by The Rust and WebAssembly Working Group