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

@progress/kendo-intl

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-intl

A package exporting functions for date and number parsing and formatting

  • 3.1.0-dev.202207060836
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @progress/kendo-intl?

@progress/kendo-intl is a package that provides internationalization (i18n) and localization (l10n) functionalities. It includes features for formatting dates, numbers, and currencies, as well as parsing these formats. This package is particularly useful for applications that need to support multiple languages and regional settings.

What are @progress/kendo-intl's main functionalities?

Date Formatting

This feature allows you to format dates according to a specified pattern. The example formats a date object into a string with the format 'yyyy-MM-dd'.

const { formatDate } = require('@progress/kendo-intl');
const date = new Date(2023, 9, 5);
const formattedDate = formatDate(date, 'yyyy-MM-dd');
console.log(formattedDate); // Output: 2023-10-05

Number Formatting

This feature allows you to format numbers according to a specified pattern. The example formats a number to include two decimal places and uses commas as thousand separators.

const { formatNumber } = require('@progress/kendo-intl');
const number = 1234567.89;
const formattedNumber = formatNumber(number, 'n2');
console.log(formattedNumber); // Output: 1,234,567.89

Currency Formatting

This feature allows you to format numbers as currency. The example formats a number as US dollars.

const { formatCurrency } = require('@progress/kendo-intl');
const amount = 1234567.89;
const formattedCurrency = formatCurrency(amount, 'USD');
console.log(formattedCurrency); // Output: $1,234,567.89

Date Parsing

This feature allows you to parse date strings into Date objects according to a specified pattern. The example parses a date string into a Date object.

const { parseDate } = require('@progress/kendo-intl');
const dateString = '2023-10-05';
const parsedDate = parseDate(dateString, 'yyyy-MM-dd');
console.log(parsedDate); // Output: Thu Oct 05 2023 00:00:00 GMT+0000 (Coordinated Universal Time)

Number Parsing

This feature allows you to parse number strings into numeric values according to a specified pattern. The example parses a formatted number string into a numeric value.

const { parseNumber } = require('@progress/kendo-intl');
const numberString = '1,234,567.89';
const parsedNumber = parseNumber(numberString, 'n2');
console.log(parsedNumber); // Output: 1234567.89

Other packages similar to @progress/kendo-intl

Keywords

FAQs

Package last updated on 06 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc