0.1.8 • Published 8 years ago

cerebro-tools v0.1.8

Weekly downloads
36
License
MIT
Repository
github
Last release
8 years ago

cerebro-tools

Library package for Cerebro app plugin developers, that includes most used functions

Documentation

Memoize

const { memoize } = require('cerebro-tools');

const fetchResults = memoize(() => {
  // Your long running function
})

Use memoize function from cerebro-tools for your long-running functions, like API-requests.

Under the hood it just uses memoizee. Check their documentation for more details.

Search

const { search } = require('cerebro-tools');

// Filter your results array
const results = search(arr, 'something', (el) => el.key);

// Display filtered results
display(results);

Simple function to search in your collection:

search = (items, term, toString = (item) => item) => {}

Where

  • items – your array;
  • term – search term;
  • toString – function to convert your collection item to string.

Related

  • Cerebro – main repo for Cerebro app;
  • Memoizee – Complete memoize/cache solution for JavaScript.

License

MIT © Alexandr Subbotin

cerebro-search-projects@everything-registry/sub-chunk-1307j-jisho@cerebroapp/cerebro-basic-apps@devmedoo/cerebro-basic-apps@infinitebrahmanuniverse/nolb-cer@omm/cerebro-confluence-jirashabnamisigap-plugin@zalastax/nolb-cerahk-managercerebro-encodecerebro-fakercerebro-file-searchcerebro-file-search-locatecerebro-gitignorecerebro-gitignore-buildercerebro-gitlabcerebro-googlecerebro-google-chrome-bookmarkscerebro-goto-folder-linuxcerebro-hackernewscerebro-cheatscerebro-chrome-bookmarkscerebro-codelfcerebro-confluence-jiracerebro-connectioncerebro-copyqcerebro-cpf-cnpjcerebro-cryptocurrenciescerebro-decodecerebro-dnsdockcerebro-ecosiacerebro-npmscerebro-num-nzhcerebro-open-coordscerebro-open-in-itermcerebro-org-todocerebro-osx-systemcerebro-oxford-dictcerebro-passwordcerebro-phpstormcerebro-placeholditcerebro-plugin-boostnotecerebro-plugin-convertcerebro-plugin-evernotecerebro-kittycerebro-latexcerebro-let-me-google-for-youcerebro-linux-system-settingscerebro-localhostcerebro-mac-appscerebro-mac-running-appscerebro-mailinatorcerebro-masscodecerebro-npmcerebro-aws-consolecerebro-baiducerebro-base2x16cerebro-base64-emilioidkcerebro-basic-appscerebro-basic-apps-chinese-abbrcerebro-files-navcerebro-filmaffinitycerebro-giaccerebro-basic-apps-chinese-abbr-pluscerebro-bitlycerebro-blockchaincerebro-case-stylescerebro-hostscerebro-imdbcerebro-itermcerebro-karabinercerebro-plugin-fantasticalcerebro-plugin-gitlabcerebro-cdnjscerebro-chocolateycerebro-plugin-gitmojicerebro-plugin-herokucerebro-plugin-iftttcerebro-plugin-sentrycerebro-plugin-statuscerebro-qwantcerebro-random-numbercerebro-recipescerebro-screenshotcerebro-shellcerebro-spotifycerebro-steamlaunchcerebro-terminalcerebro-tldrcerebro-torrentcerebro-translatecerebro-traviscerebro-tunnelblickcerebro-uuidcerebro-web-searchcerebro-whoiscerebro-skyengcerebro-snippets
0.1.8

8 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago