npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

random-script

v0.4.6

Published

Random Unicode script generator

Downloads

2

Readme

random-script

Build Status

This is a library to generate random strings for multiple languages in JavaScript.

Demos

Usage

node.js

npm install random-script
var random = require('random-script').create();
var emojis = random.string(12, 'Emoticons');
console.log(emojis);  // '😌😺😴😏😋😞😡😶😔😏🙌🙇'

Browser

It is recommended to use Browserify with npm install random-script.

Below is just for a trial usage.

<script src="https://cdn.rawgit.com/ymkjp/random-script/v0.4.6/build/random-script.min.js"></script>
<script>
  var random = require('random-script').create();
  alert(random.string(1, 'Arabic'));
</script>

Supported Languages

RandomScript supports following languages based on Unicode-8.0.0.

  • Basic Latin
  • Latin-1 Supplement
  • Latin Extended-A
  • Latin Extended-B
  • IPA Extensions
  • Spacing Modifier Letters
  • Combining Diacritical Marks
  • Greek and Coptic
  • Cyrillic
  • Cyrillic Supplement
  • Armenian
  • Hebrew
  • Arabic
  • Syriac
  • Arabic Supplement
  • Thaana
  • NKo
  • Samaritan
  • Mandaic
  • Arabic Extended-A
  • Devanagari
  • Bengali
  • Gurmukhi
  • Gujarati
  • Oriya
  • Tamil
  • Telugu
  • Kannada
  • Malayalam
  • Sinhala
  • Thai
  • Lao
  • Tibetan
  • Myanmar
  • Georgian
  • Hangul Jamo
  • Ethiopic
  • Ethiopic Supplement
  • Cherokee
  • Unified Canadian Aboriginal Syllabics
  • Ogham
  • Runic
  • Tagalog
  • Hanunoo
  • Buhid
  • Tagbanwa
  • Khmer
  • Mongolian
  • Unified Canadian Aboriginal Syllabics Extended
  • Limbu
  • Tai Le
  • New Tai Lue
  • Khmer Symbols
  • Buginese
  • Tai Tham
  • Combining Diacritical Marks Extended
  • Balinese
  • Sundanese
  • Batak
  • Lepcha
  • Ol Chiki
  • Sundanese Supplement
  • Vedic Extensions
  • Phonetic Extensions
  • Phonetic Extensions Supplement
  • Combining Diacritical Marks Supplement
  • Latin Extended Additional
  • Greek Extended
  • General Punctuation
  • Superscripts and Subscripts
  • Currency Symbols
  • Combining Diacritical Marks for Symbols
  • Letterlike Symbols
  • Number Forms
  • Arrows
  • Mathematical Operators
  • Miscellaneous Technical
  • Control Pictures
  • Optical Character Recognition
  • Enclosed Alphanumerics
  • Box Drawing
  • Block Elements
  • Geometric Shapes
  • Miscellaneous Symbols
  • Dingbats
  • Miscellaneous Mathematical Symbols-A
  • Supplemental Arrows-A
  • Braille Patterns
  • Supplemental Arrows-B
  • Miscellaneous Mathematical Symbols-B
  • Supplemental Mathematical Operators
  • Miscellaneous Symbols and Arrows
  • Glagolitic
  • Latin Extended-C
  • Coptic
  • Georgian Supplement
  • Tifinagh
  • Ethiopic Extended
  • Cyrillic Extended-A
  • Supplemental Punctuation
  • CJK Radicals Supplement
  • Kangxi Radicals
  • Ideographic Description Characters
  • CJK Symbols and Punctuation
  • Hiragana
  • Katakana
  • Bopomofo
  • Hangul Compatibility Jamo
  • Kanbun
  • Bopomofo Extended
  • CJK Strokes
  • Katakana Phonetic Extensions
  • Enclosed CJK Letters and Months
  • CJK Compatibility
  • CJK Unified Ideographs Extension A
  • Yijing Hexagram Symbols
  • CJK Unified Ideographs
  • Yi Syllables
  • Yi Radicals
  • Lisu
  • Vai
  • Cyrillic Extended-B
  • Bamum
  • Modifier Tone Letters
  • Latin Extended-D
  • Syloti Nagri
  • Common Indic Number Forms
  • Phags-pa
  • Saurashtra
  • Devanagari Extended
  • Kayah Li
  • Rejang
  • Hangul Jamo Extended-A
  • Javanese
  • Myanmar Extended-B
  • Cham
  • Myanmar Extended-A
  • Tai Viet
  • Meetei Mayek Extensions
  • Ethiopic Extended-A
  • Latin Extended-E
  • Cherokee Supplement
  • Meetei Mayek
  • Hangul Syllables
  • Hangul Jamo Extended-B
  • High Surrogates
  • High Private Use Surrogates
  • Low Surrogates
  • Private Use Area
  • CJK Compatibility Ideographs
  • Alphabetic Presentation Forms
  • Arabic Presentation Forms-A
  • Variation Selectors
  • Vertical Forms
  • Combining Half Marks
  • CJK Compatibility Forms
  • Small Form Variants
  • Arabic Presentation Forms-B
  • Halfwidth and Fullwidth Forms
  • Specials
  • Linear B Syllabary
  • Linear B Ideograms
  • Aegean Numbers
  • Ancient Greek Numbers
  • Ancient Symbols
  • Phaistos Disc
  • Lycian
  • Carian
  • Coptic Epact Numbers
  • Old Italic
  • Gothic
  • Old Permic
  • Ugaritic
  • Old Persian
  • Deseret
  • Shavian
  • Osmanya
  • Elbasan
  • Caucasian Albanian
  • Linear A
  • Cypriot Syllabary
  • Imperial Aramaic
  • Palmyrene
  • Nabataean
  • Hatran
  • Phoenician
  • Lydian
  • Meroitic Hieroglyphs
  • Meroitic Cursive
  • Kharoshthi
  • Old South Arabian
  • Old North Arabian
  • Manichaean
  • Avestan
  • Inscriptional Parthian
  • Inscriptional Pahlavi
  • Psalter Pahlavi
  • Old Turkic
  • Old Hungarian
  • Rumi Numeral Symbols
  • Brahmi
  • Kaithi
  • Sora Sompeng
  • Chakma
  • Mahajani
  • Sharada
  • Sinhala Archaic Numbers
  • Khojki
  • Multani
  • Khudawadi
  • Grantha
  • Tirhuta
  • Siddham
  • Modi
  • Takri
  • Ahom
  • Warang Citi
  • Pau Cin Hau
  • Cuneiform
  • Cuneiform Numbers and Punctuation
  • Early Dynastic Cuneiform
  • Egyptian Hieroglyphs
  • Anatolian Hieroglyphs
  • Bamum Supplement
  • Mro
  • Bassa Vah
  • Pahawh Hmong
  • Miao
  • Kana Supplement
  • Duployan
  • Shorthand Format Controls
  • Byzantine Musical Symbols
  • Musical Symbols
  • Ancient Greek Musical Notation
  • Tai Xuan Jing Symbols
  • Counting Rod Numerals
  • Mathematical Alphanumeric Symbols
  • Sutton SignWriting
  • Mende Kikakui
  • Arabic Mathematical Alphabetic Symbols
  • Mahjong Tiles
  • Domino Tiles
  • Playing Cards
  • Enclosed Alphanumeric Supplement
  • Enclosed Ideographic Supplement
  • Miscellaneous Symbols and Pictographs
  • Emoticons
  • Ornamental Dingbats
  • Transport and Map Symbols
  • Alchemical Symbols
  • Geometric Shapes Extended
  • Supplemental Arrows-C
  • Supplemental Symbols and Pictographs
  • CJK Unified Ideographs Extension B
  • CJK Unified Ideographs Extension C
  • CJK Unified Ideographs Extension D
  • CJK Unified Ideographs Extension E
  • CJK Compatibility Ideographs Supplement
  • Tags
  • Variation Selectors Supplement
  • Supplementary Private Use Area-A
  • Supplementary Private Use Area-B

Development Tips

Please feel free to send patches.

npm install
npm run compile -- --watch
npm test -- --watch