UNPKG

1.61 kBMarkdownView Raw
1## @vect/backendr
2backend a function
3
4[![npm version][badge-npm-version]][url-npm]
5[![npm download monthly][badge-npm-download-monthly]][url-npm]
6[![npm download total][badge-npm-download-total]][url-npm]
7[![npm dependents][badge-npm-dependents]][url-github]
8[![npm license][badge-npm-license]][url-npm]
9[![pp install size][badge-pp-install-size]][url-pp]
10[![github commit last][badge-github-last-commit]][url-github]
11[![github commit total][badge-github-commit-count]][url-github]
12
13[//]: <> (Shields)
14[badge-npm-version]: https://flat.badgen.net/npm/v/@arpel/backend
15[badge-npm-download-monthly]: https://flat.badgen.net/npm/dm/@arpel/backend
16[badge-npm-download-total]:https://flat.badgen.net/npm/dt/@arpel/backend
17[badge-npm-dependents]: https://flat.badgen.net/npm/dependents/@arpel/backend
18[badge-npm-license]: https://flat.badgen.net/npm/license/@arpel/backend
19[badge-pp-install-size]: https://flat.badgen.net/packagephobia/install/@arpel/backend
20[badge-github-last-commit]: https://flat.badgen.net/github/last-commit/hoyeungw/arpel
21[badge-github-commit-count]: https://flat.badgen.net/github/commits/hoyeungw/arpel
22
23[//]: <> (Link)
24[url-npm]: https://npmjs.org/package/@arpel/backend
25[url-pp]: https://packagephobia.now.sh/result?p=@arpel/backend
26[url-github]: https://github.com/hoyeungw/arpel
27
28## Features
29
30- backend a function
31
32## Install
33```console
34$ npm install @arpel/backend
35```
36
37## Usage
38```js
39import { backend } from '@arpel/backend'
40
41const func = x => x
42console.log(func.name) // func
43backend(func, 'not-a-method')
44console.log(func.name) // not-a-method
45
46```
47
48## Meta
49[LICENSE (MIT)](LICENSE)