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

afp-d3-format

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afp-d3-format

All d3's time formats and number formats following AFP guidelines.

npmnpm
Version
1.1.0
Version published
Weekly downloads
29
-43.14%
Maintainers
1
Weekly downloads
 
Created
Source

AFP d3 formats

This repo contains all d3's time formats and number formats following AFP guidelines.

It's modularized, so you can use the import syntax.

Install

For now, only npm is supported. npm install afp-d3-format

Usage

import { fr } from 'afp-d3-format'

console.log('fr time format', fr.time)
console.log('fr number format', fr.number)

let timeLocale = d3.timeFormatLocale(fr.time)
console.log(timeLocale.format('%a %d')(new Date()))

FAQs

Package last updated on 31 Oct 2017

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