iconv-lite
indent-string
iconv-lite | indent-string | |
---|---|---|
3 | 2 | |
3,024 | 110 | |
- | - | |
0.0 | 1.8 | |
6 months ago | almost 2 years ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iconv-lite
-
How to avoid using inheritance in modeling a String API built on top of lists, in an imperative language?
Then, the Text (or call it String) class is also a List. There are 3 types of Text classes: Text8, Text16 and Text32. Notice I was kind of vague in what I meant there. Take Text8 for example. Using Text8, we have many different encodings. We have the UTF8 encoding, as well as many other "single byte encodings" like ASCII.
-
Let's develop a QR Code Generator, part VII: other kinds of data
I won't go into detail about how to map a character into its Shift JIS code for now, as there are good libraries for the job (iconv-lite comes to mind, and you can even have a look to the actual table if you want to whip up your own solution). It's sufficient to say that we'll need 13 bits (213 = 8192) for each one of them.
-
Let's develop a QR Code Generator, part II: sequencing data
For Kanji mode... oh dear. First, we'd have to get the Shift JIS code of the pictogram, and the best way to do it is using a library like iconv-lite or, if you want to to it on your own, use its symbol table. Also, not every symbol can be used, but only those in the ranges 0x8140 to 0x9FFC and 0xE040 to 0xEBBF. In the end, a Kanji character will take 13 bits.
indent-string
What are some alternatives?
Numeral-js - A javascript library for formatting and manipulating numbers.
camelcase - Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar
underscore.string - String manipulation helpers for javascript
hanging-indent - format a string into a hanging indent with Node.js
he - A robust HTML entity encoder/decoder written in JavaScript.
strip-indent - Strip leading whitespace from each line in a string
string-length - Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
i18n-node - Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.
escape-string-regexp - Escape RegExp special characters
Table - Formats data into a string table.
repeating - Repeat a string - fast
detect-indent - Detect the indentation of code