Download node_modules/d3-format/src/formatNumerals.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 154 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/formatNumerals.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-format/src/formatNumerals.js
-
curl -L -o formatNumerals.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/formatNumerals.js
154 Bytes
| export default function(numerals) { | |
| return function(value) { | |
| return value.replace(/[0-9]/g, function(i) { | |
| return numerals[+i]; | |
| }); | |
| }; | |
| } | |