semicolon.js

Web development, redefined.

Usage no npm install needed!

<script type="module">
  import semicolonJs from 'https://cdn.skypack.dev/semicolon.js';
</script>

README


semicolon.js
semicolon.js

Web development, redefined.

NPM Gitter

UsageFunctionsDownloadCreditsLicense

Usage

Require the module
var semicolon = require('semicolon');
In the browser
<script type="text/javascript" src="./semicolon.js"></script>

Functions

Basic semicolon
semicolon(); // ;
The Law of Fives
semicolon.law(); // The Law of Semicolons states simply that: semicolons makes you chilled all the time.
Multilingual
semicolon.english(); // semicolon
semicolon.korean(); // 세미콜론
semicolon.german(); // semikolon
Length
semicolon.len(); // 1
Twins
semicolon.twins(); // ; (greek question mark)
Assertion
semicolon.isSemicolon(','); // false
Cryptography
semicolon.mdSemicolon(); // 9eecb7db59d16c80417c72d1e1f4fbf1
semicolon.bcryptSemicolon(); // $2y$10$tvI086gYYhR6SfNO1sLAueVMFgjf.sXEcLJaDOpRjxJ2Z3FIpsqIu
Different radices
semicolon.binary(); // 111011
semicolon.octal(); // 73
semicolon.hex(); // 3b
semicolon.base(4); // 323
semicolon.base(3); // 2012
Asynchronous Usage
semicolon.async(function(err, semicolon) {
  // semicolon === ';'
});
Filter, Map and Reduce
semicolon.filter([';', true, ';']); // [';', ';']
semicolon.map([1, 2, 3]); // [';', ';', ';']
semicolon.reduce([1, 2, 3]); // ;

Download

You can download the package here: Download ZIP

Credits

  • Cozy Planes (idea, planning, ...)
  • Skayo (setup, perfection, ...)

License

Apache License 2.0