https://github.com/gadge/ject
util for functions
https://github.com/gadge/ject
Last synced: 4 months ago
JSON representation
util for functions
- Host: GitHub
- URL: https://github.com/gadge/ject
- Owner: gadge
- License: mit
- Created: 2020-05-26T10:05:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T02:28:36.000Z (8 months ago)
- Last Synced: 2025-01-26T12:41:34.663Z (5 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
functional operations
[]()
[][url-github]
[][url-github]
[]()
[][url-github]
[][url-github]
[]()[//]: # ([](https://www.npmjs.com/package/@aryth/math?activeTab=dependents))
[//]: # ()
[//]: <> (Link)
[url-github]: https://github.com/hoyeungw/ject
[url-npm]: https://npmjs.org/package/@ject/oneself
### Bullets
- Featured functional operations.
- Small and separate modules. Install on need.
- Lightweight and fast.### Install
```console
$ npm install @ject/
```### Tools
| | | | |
|-----------------------------------|---------------------------------|------|-------------------|
| [**callable**](packages/callable) | A class that inherits function | misc | ![v][callable-dm] |
| [**chore**](packages/chore) | Factory to create function | misc | ![v][chore-dm] |
| [**mixin**](packages/mixin) | Inherit multiple classes | misc | ![v][mixin-dm] |
| [**noop**](packages/noop) | Function to return nothing | misc | ![v][noop-dm] |
| [**oneself**](packages/oneself) | Function to return input itself | misc | ![v][oneself-dm] |
| [**pipe**](packages/pipe) | Pipeline functions | misc | ![v][pipe-dm] |
| [**rename**](packages/rename) | Rename a function | misc | ![v][rename-dm] |
| | | | |[//]: <> (Local routes)
[callable-dm]: https://flat.badgen.net/npm/dm/@ject/callable
[chore-dm]: https://flat.badgen.net/npm/dm/@ject/chore
[mixin-dm]: https://flat.badgen.net/npm/dm/@ject/mixin
[noop-dm]: https://flat.badgen.net/npm/dm/@ject/noop
[oneself-dm]: https://flat.badgen.net/npm/dm/@ject/oneself
[pipe-dm]: https://flat.badgen.net/npm/dm/@ject/pipe
[rename-dm]: https://flat.badgen.net/npm/dm/@ject/rename
### Usage
```ecmascript 6
import { noop } from '@ject/noop'const input = 'value'
const output = noop(input)
console.log(output) // undefined```
```ecmascript 6
import { oneself } from '@ject/oneself'const input = 'value'
const output = oneself(input)
console.log(output) // 'value'```
#### Meta
[LICENSE (MIT)](LICENSE)