Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

denim-memoize

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

denim-memoize

Utility to memoize functions

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

denim-memoize

This utility was built to generically memoize a function.

Getting Started

yarn add denim-memoize

Prerequisites

None

Installing

Clone the repo

yarn add denim-memoize

ES6 Import

import memoizeFactory from 'denim-memoize'

CommonJS

const memoizeFactory = require('denim-memoize')

Usage

import memoizeFactory from 'denim-memoize'

const myFunction = () => {
  return 'Hello Memoizer'
}

const memoizedMyFunction = memoizeFactory(myFunction)

// to get memoization, now just use memoizedMyFunction in place of myFunction

let result = memoizedMyFunction()

Running the tests

yarn test

Deployment

yarn publish --new-version NEWVER

Built With

  • node - Node 9.2.0
  • jest - Jest testing
  • chai - Assertion Library

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Package last updated on 24 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc