Socket
Socket
Sign inDemoInstall

ordinalize-tr

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ordinalize-tr

Add ordinal suffix to a number - for Turkish language


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Install size
14.1 kB
Created
Weekly downloads
 

Readme

Source

ordinalize-tr

Add ordinal suffix to a number - for Turkish language

NPM version npm Coverage Status

✅ It can calculate all ordinal suffixes, up to Trillion and beyond! 🚀

Install

npm install ordinalize-tr

Usage

const { ordinal } = require('ordinalize-tr');

ordinal(5); // Returns: "5'inci"
ordinal(5, false); // Returns: "inci"

Usage in Browser

<script src="https://unpkg.com/ordinalize-tr/dist/index.umd.js"></script>
<script>
  window.ordinalizeTR.ordinal(43); // Returns: "43'üncü"
</script>

Type Signature

const ordinal = (num: number, onlySuffix: boolean = false) => string;

Contribution

As always, I'm open to any contribution and would like to hear your feedback.

Just an important reminder:

If you are planning to contribute to any open source project, before starting development, please always open an issue and make a proposal first. This will save you from working on features that are eventually going to be rejected for some reason.

LICENCE

MIT (c) 2020 Mehmet Yatkı

Keywords

FAQs

Last updated on 19 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc