New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/number-to-words

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

@types/number-to-words - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

5

number-to-words/index.d.ts

@@ -1,6 +0,1 @@

// Type definitions for number-to-words 1.2
// Project: https://github.com/marlun78/number-to-words
// Definitions by: Frederick Fogerty <https://github.com/frederickfogerty>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace numberToWords;

@@ -7,0 +2,0 @@

11

number-to-words/package.json
{
"name": "@types/number-to-words",
"version": "1.2.1",
"version": "1.2.2",
"description": "TypeScript definitions for number-to-words",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words",
"license": "MIT",

@@ -9,4 +10,4 @@ "contributors": [

"name": "Frederick Fogerty",
"url": "https://github.com/frederickfogerty",
"githubUsername": "frederickfogerty"
"githubUsername": "frederickfogerty",
"url": "https://github.com/frederickfogerty"
}

@@ -23,4 +24,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "2c21d82a9242eb2ca859e07d74f03617f587d1c833046f63a6572afafa293687",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "69f7c8b93c7f0c978471213995d6ebd356f645895b1a32ebc3bb8659dfa5297f",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,28 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words/index.d.ts)
````ts
export as namespace numberToWords;
/**
* Converts an integer into a string with an ordinal postfix. If number is decimal, the decimals will be removed.
*/
export function toOrdinal(number: string | number): string;
/**
* Converts an integer into words. If number is decimal, the decimals will be removed.
*/
export function toWords(number: string | number): string;
/**
* Converts a number into ordinal words. If number is decimal, the decimals will be removed.
*/
export function toWordsOrdinal(number: string | number): string;
````
### Additional Details
* Last updated: Sat, 08 May 2021 22:01:22 GMT
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT
* Dependencies: none
* Global values: `numberToWords`
# Credits
These definitions were written by [Frederick Fogerty](https://github.com/frederickfogerty).
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