Just - Just do one thing.
Emoji Commit
| Commit Type | Emoji |
|---|---|
| Initial Commit | :tada: |
| Structure | :art: |
| Documentation | :memo: |
| New Idea | :bulb: |
| New Feature | :sparkles: |
| Bug | :bug: |
| Version Tag | :bookmark: |
| Performance | :racehorse: |
| Tooling | :wrench: |
| Tests | :rotating_light: |
| Deprecation | :poop: |
| Work In Progress (WIP) | :construction: |
| Upgrading | :arrow_up: |
Example:
" Initial Commit"
Packages
Usage
just-type
type checking.
import type from 'just-type';
function hello() {
console.log('hello type');
}
type(); // undefined
type(undefined); // undefined
type(null); // null
type(''); // string
type('hello'); // string
type(0); // number
type(true); // boolean
type({}); // object
type([]); // array
type(hello); // function
type(/\./); // regexp
just-camelize
transform strings to camel case.
import camelize from 'just-camelize';
camelize('_hello_world'); // HelloWorld
camelize('_hello-world'); // HelloWorld
camelize('-hello_world'); // HelloWorld
camelize('-hello-world'); // HelloWorld
just-extend-it
objects extend.
import extend from 'just-extend-it';
var source = {
just: 'just',
};
extend(source); // { just: 'just', }
extend(source, { hello: 'hello', }); // { just: 'just', hello: 'hello', }
extend(source, { hello: 'hello', }, { world: 'world', }); // { just: 'just', hello: 'hello', world: 'world', }
extend(true, source, { hello: 'hello', }); // { just: 'just', hello: 'hello', }
extend(true, source, { hello: { world: 'world', }, }); // { just: 'just', hello: { world: 'world', }, }
extend(true, source, { hello: { world: 'world', }, { hello: { hi: 'hi', }, });// { just: 'just', hello: { world: 'world', hi: 'hi', }, }
extend(source, { hello: { world: 'world', }, }, { hello: { hi: 'hi', }, }); // { just: 'just', hello: { hi: 'hi', }, }
