@lickd/distributions v0.8.2
Distributions
Details
⚠️ Warning!
While in version
0.x
there is a chance of breaking changes between minor/patch version.
Please be cautious when upgrading between versions and check for any upgrade guides.Once a major version is released, this will no longer be the case and this library will follow Semantic Versioning.
A library for parsing and converting distribution files.
Install
$ npm install @lickd/distributions @lickd/logger
Usage
Examples can be found in the examples folder.
Parsing
import { Distributions } from "@lickd/distributions";
import { ConsoleLogger } from "@lickd/logger";
import { readFileSync } from "fs";
const logger = new ConsoleLogger();
const distributions = new Distributions(logger);
const file = "path/to/distribution/file";
(async () => {
const parsed = await distributions.parse(readFileSync(file).toString());
logger.info({ parsed });
})();
Converting
import { Distributions } from "@lickd/distributions";
import { ConsoleLogger } from "@lickd/logger";
import { readFileSync } from "fs";
const logger = new ConsoleLogger();
const distributions = new Distributions(logger);
const file = "path/to/distribution/file";
(async () => {
const parsed = await distributions.parse(readFileSync(file).toString());
logger.info({ parsed });
const converted = distributions.convertToErn411(parsed);
logger.info({ converted });
})();
Copyright info
This scene is protected with a standard Apache 2 licence. See the terms and conditions in the LICENSE file.
8 days ago
24 days ago
25 days ago
25 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago