chrono-format
v0.2.1
Published
A WASM library for validating strftime datetime formats
Downloads
14
Readme
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