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

to-uri

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-uri

Transliteration for JavaScript & Node.js, basically used for URI generation. As small and simple as possible.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by11.11%
Maintainers
1
Weekly downloads
 
Created
Source

String: toURI() & transliterate() for JavaScript

Transliteration for JavaScript & Node.js, basically used for URI generation. As small'n'simple as possible, but has a basic Ukrainian/Russian language detection for "и" char replacements.

Usage

Basically, just call toURI() with a String and you'll get a SEO friendly URL, separated with dashes ("-") by default. Also, there's a transliterate() method, but it always works with toLowerCase() right now, not sure should it be improved yet or not.

Packages:

  • bower install to-uri
  • npm install to-uri

Examples:

toURI("Тест: Чи маємо те, на що чекаємо? + /English Text Remains/?")
// test-chy-mayemo-te-na-shcho-chekayemo+english-text-remains

toURI("Тест: Проверим текст на русском языке")
// test-proverim-tekst-na-russkom-yazyke

Credits

Prepared by Annexare Studio. Feel free to use it as you need in your apps or send updates into this public repository. It's under MIT license.

Keywords

FAQs

Package last updated on 01 Sep 2014

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