Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gadge/ject
util for functions
https://github.com/gadge/ject
Last synced: about 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T02:28:36.000Z (2 months ago)
- Last Synced: 2024-11-12T03:24:57.114Z (2 months ago)
- Language: JavaScript
- Size: 101 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
[![version](https://img.shields.io/npm/v/@ject/noop?logo=npm&style=flat-square)]()
[![language](https://img.shields.io/github/languages/top/gadge/ject?logo=javascript&style=flat-square)][url-github]
[![manager](https://img.shields.io/badge/manager-pnpm-F69220?logo=pnpm&logoColor=EEE&style=flat-square)][url-github]
[![npm last update](https://img.shields.io/npm/last-update/@ject/noop?logo=npm&style=flat-square)]()
[![github last commit](https://img.shields.io/github/last-commit/gadge/ject?logo=github&style=flat-square)][url-github]
[![github commits](https://img.shields.io/github/commit-activity/t/gadge/ject?logo=github&style=flat-square)][url-github]
[![node version](https://img.shields.io/node/v/@ject/noop/latest?logo=node.js&style=flat-square)]()[//]: # ([![npm dependents](https://flat.badgen.net/npm/dependents/@aryth/math)](https://www.npmjs.com/package/@aryth/math?activeTab=dependents))
[//]: # (![NPM Downloads by package author](https://img.shields.io/npm-stat/dw/hoyeung))
[//]: <> (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)