bentinabeakley
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Bentina Beakley!

I basically curry functions in a super opinionated way. I originally made this inside of boulangerie, but found i was using this function more than that module....so, i made it.

You can pass in sync, or async functions.

const currier = require('bentinabeakley');
 
const buildAdapterFunc = (build, service, output) => {
  const totalArray = [...build, ...service, ...output];
  return async initialParam => currier(initialParam).chain(totalArray).execute();
};
 
await buildAdapterFunc(
  [
    async () => {
      console.log('a build step');
    },
  ],
  [
    () => {
      console.log('a service step');
    },
  ],
  [
    () => {
      console.log('an output step');
    },
    () => true,
  ]
); // returns true

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i bentinabeakley

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.32 kB

Total Files

8

Last publish

Collaborators

  • samrocksc