Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-chinese-numeral

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-chinese-numeral - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

1

dist/index.d.ts
declare function toChineseNumeral(num: number): string;
export default toChineseNumeral;

3

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc