The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
⭐ ブログ → githubio
Twitter → @takapiro_99
GitHub → @takapiro99
LT など登壇資料まとめ → https://drive.google.com/drive/folders/1JLm3j1...
- CAモバイル
- シーエー・モバイル新卒エンジニア技術研修2016 - (2016/06/07)
- DeNA
- 大規模Perl初心者研修を支える技術 - (2013)
- 新人エンジニア研修ですべきことできることを聞いてきた! - (2014/02)
- Developers Summit 2014 で新卒エンジニア研修についてお話してきました
- DMM.com ラボ
- DMM.comラボ16新卒エンジニア研修 - (2016/08/24)
- GREE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 数値を整数・少数表記に変換する。 | |
* 内部的には、指数表記の文字列をパースし、小数表記に変換している。 | |
* | |
* @param {number|string} number 変換したい数値、または数値形式の文字列。 | |
* 数値型であればNaNやInfinityも指定できるが、そのまま文字列化して返される。 | |
* @return {string} 小数表記の数値文字列 | |
* @throws 適切な形式の数値、または文字列が与えられなかった場合に発生する。 | |
* | |
* Note: この関数は、JavaScriptで正確な数値演算を行うために使う**べきではない**。 |
- CARTA HOLDINGS(旧VOYAGE GROUP)
- 技術広報が新卒研修<Open AIハッカソン>をスパイしてみた - (2023/04/11)
- @t_wadaに学ぶテスト駆動開発【CARTA 23新卒研修】 - (2023/04/19)
- 【新卒研修】監修者@t_wadaと読む!プログラマが知るべき97のこと読書会 - (2024/04/09)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- リモートワークのための質問力向上研修を実施しました - (2021/12/07)
- CyberZ
- 良いコードとは何か - エンジニア新卒研修 スライド公開 - (2021/04/27)
NewerOlder