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

i18n-number

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-number

Wrapper element for Intl.NumberFormat

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-7.14%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Coverage Status npm version Published on webcomponents.org

i18n-number

Wrapper element for Intl.NumberFormat.

Demo and API Docs

Install

    npm install i18n-number

Import

    import "i18n-number/i18n-number.js";

Usage

    <i18n-number 
      lang="en"
      options='{ "style": "currency", "currency": "USD" }' 
      >123456.78</i18n-number>

This renders as follows:

    $123,456.78

Demo

Prerequisite for Building and Serving Demo
    npm install -g polymer-cli
On-the-fly Build
    # Serve at http://localhost:8080/components/i18n-number/demo/
    polymer serve --npm --module-resolution=node -p 8080
Static Builds
  • Build
    polymer build
  • Targets
targetbrowserminifybundled
build/esm-unbundledes6,modulesnono
build/esm-bundledes6,modulesyesyes
build/es6-bundledes6yesyes
build/es5-bundledes5yesyes
  • Serve
    # Serve at http://localhost:8080/
    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}
    python -m SimpleHTTPServer 8080 # or any HTTP(S) server

License

BSD-2-Clause

Keywords

FAQs

Package last updated on 16 Jan 2019

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