Package Exports
- ml-spectra-processing
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml-spectra-processing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
spectra-processing
Various method to process spectra.
Installation
$ npm i ml-spectra-processing
Installation of the package not published on npm
Because we would like to add incrementally small function and directly reuse them we can directly add a dependency by adding adding directly a commit UUID.
To retrieve the commit UUID : git log
To add the dependency:
npm i mljs/spectra-processing#ed33f5cc8e0f5f6e8e9210bd915c6393846dbd17
You can then add a specific function:
const closest = require('ml-spectra-processing').arrayFindClosestIndex;or
import {arrayFindClosestIndex} from
Build the project and put to github
npm install --global cheminfo-build
cheminfo build
Usage
import library from 'ml-spectra-processing';
const result = library(args);
// result is ...