Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose add-on modules to npm entrypoint #50

Closed
albincorreya opened this issue Apr 11, 2021 · 0 comments
Closed

Expose add-on modules to npm entrypoint #50

albincorreya opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@albincorreya
Copy link
Member

Currently, the npm index.js only exposes an instance of the core essentia.js. It would be nice to bundle all the essentia.js related modules into a common namespace and let the user create the instances as they prefer.

A node.js example would be ,

let esPkg = require("essentia.js");

// core essentia.js API
esPkg.Essentia
// essentia WASM backend
esPkg.EssentiaWASM
// add-on modules
esPkg.EssentiaModel
esPkg.EssentiaExtractor
esPkg.EssentiaPlot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant