to-chinese-numeral
Advanced tools
Comparing version 0.2.1 to 0.3.0
declare function toChineseNumeral(num: number): string; | ||
export default toChineseNumeral; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
function toChineseNumeral(num) { | ||
@@ -74,2 +73,2 @@ if (typeof num !== "number" || Number.isNaN(num)) { | ||
} | ||
module.exports = toChineseNumeral; | ||
export default toChineseNumeral; |
{ | ||
"name": "to-chinese-numeral", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
"description": "A function that takes a Number as its argument and returns a Chinese numeral string.", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"author": "Jérôme Pott", | ||
"scripts": { | ||
"test": "tsc && jest", | ||
"test": "tsc && cross-env NODE_OPTIONS=--experimental-vm-modules jest", | ||
"build": "tsc" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"jest": "^26.6.3", | ||
"typescript": "^4.1.3" | ||
}, | ||
"jest": { | ||
"transform": {} | ||
}, | ||
"engines": { | ||
"node": ">=12.13" | ||
}, | ||
"keywords": [ | ||
@@ -17,0 +26,0 @@ "chinese", |
@@ -92,2 +92,2 @@ function toChineseNumeral(num: number) { | ||
module.exports = toChineseNumeral | ||
export default toChineseNumeral |
@@ -1,2 +0,2 @@ | ||
const toChineseNumeral = require("../dist/index.js") | ||
import toChineseNumeral from "../dist/index.js" | ||
@@ -3,0 +3,0 @@ describe("Chinese Numerals", function () { |
@@ -7,4 +7,5 @@ { | ||
// "incremental": true, /* Enable incremental compilation */ | ||
"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, | ||
"module": "ES2020" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, | ||
"target": "es2019", // Node.js 12 | ||
"module": "es2020", | ||
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ | ||
// "lib": [], /* Specify library files to be included in the compilation. */ | ||
@@ -11,0 +12,0 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15894
253
Yes
3