Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/semicolon-package/semicolon.js

A way to simplify semicolons.
https://github.com/semicolon-package/semicolon.js

Last synced: about 2 months ago
JSON representation

A way to simplify semicolons.

Awesome Lists containing this project

README

        




semicolon.js


semicolon.js


Web development, redefined


NPM
Gitter
Downloads


Usage
Functions
Download
Credits
License

## Usage

##### Require the module
```javascript
var semicolon = require('semicolon');
```

##### In the browser
```html

```

## Functions

##### Basic semicolon
```javascript
semicolon(); // ;
```

##### The Law of Semicolons
```javascript
semicolon.law(); // The Law of Semicolons states simply that: semicolons makes you chilled all the time.
```

##### Multilingual
```javascript
semicolon.english(); // semicolon
semicolon.korean(); // 세미콜론
semicolon.german(); // semikolon
```

##### Length
```javascript
semicolon.len(); // 1
```

##### Twins
```javascript
semicolon.twins(); // ; (greek question mark)
```

##### Assertion
```javascript
semicolon.isSemicolon(','); // false
```

##### Cryptography
```javascript
semicolon.mdSemicolon(); // 9eecb7db59d16c80417c72d1e1f4fbf1
semicolon.bcryptSemicolon(); // $2y$10$tvI086gYYhR6SfNO1sLAueVMFgjf.sXEcLJaDOpRjxJ2Z3FIpsqIu
```

##### Different radices
```javascript
semicolon.binary(); // 111011
semicolon.octal(); // 73
semicolon.hex(); // 3b
semicolon.base(4); // 323
semicolon.base(3); // 2012
```

##### Asynchronous Usage
```javascript
semicolon.async(function(err, semicolon) {
// semicolon === ';'
});
```

##### Filter, Map and Reduce
```javascript
semicolon.filter([';', true, ';']); // [';', ';']
semicolon.map([1, 2, 3]); // [';', ';', ';']
semicolon.reduce([1, 2, 3]); // ;
```

## Download

You can download the package here: [Download ZIP]()

Or with npm:
```shell
$ npm install semicolon.js
```

## Credits

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

## License

[Apache License 2.0](https://github.com/semicolon-package/semicolon.js/blob/master/LICENSE)