@pdz/df

1.0.1 • Public • Published

Distant function loader for NodeJS

Example:

const pdzDF = require('@pdz/df');

pdzDF('https://example_url_to_function_content').then(func => func.call({ test: true }, 1, 2, 3)).catch(console.error);

// Example function content (from https://example_url_to_function_content):
// console.log(this, Array.from(arguments));

// Example result:
// { test: true } [ 1, 2, 3 ]

Package Sidebar

Install

npm i @pdz/df

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • pdz