@boatnet/bn-util
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

bn-util

  • Basic boatnet function wrappers, currently just using moment for parsing ISO 8601:

shortFormatDate(dateStr: string): string

formatDate(dateStr: string): string

const testShort = util.shortFormatDate('2019-01-01T00:00:00');
// "01/01/19 00:00"
const testFormat = util.formatDate('2019-01-01T00:00:00');
// "January 1, 2019 12:00 AM"

Readme

Keywords

none

Package Sidebar

Install

npm i @boatnet/bn-util

Weekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

158 kB

Total Files

42

Last publish

Collaborators

  • wsmith_noaa
  • seth.gerou
  • saraogaz
  • mak2
  • nickshaffer-noaa
  • mshak
  • fram-data-team