From 79178f9a58cb5c42dc8d40ee650688b637a1f0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Wed, 25 Nov 2020 15:46:35 +0100 Subject: [PATCH] Fix naming --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa88a22..c57fc1e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ For most usecases, you'll only need two functions: `stringToData` and `dataToStr ``` import { readFile, writeFile } from 'fs/promises'; -import { stringToData, dataToString } from 'systemd-unitfiles'; +import { stringToData, dataToString } from 'unitfile-parser'; (async () => { const unitFilePath = '~/.config/systemd/user/xsettingsd.service'; @@ -56,7 +56,7 @@ Convert a unit file string to a JS AST. ``` import { readFile } from 'fs/promises'; -import { stringToAst } from 'systemd-unitfiles'; +import { stringToAst } from 'unitfile-parser'; readFile('~/.config/systemd/user/xsettingsd.service') .then(fileContents => { @@ -84,7 +84,7 @@ Convert an ast to a valid unit file string. ``` import { writeFile } from 'fs/promises'; -import { astToString } from 'systemd-unitfiles'; +import { astToString } from 'unitfile-parser'; const ast = // some ast here diff --git a/package.json b/package.json index 8e357ff..9c2fb06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unitfile-parser", - "version": "1.0.1", + "version": "1.0.2", "description": "Parse systemd unit files", "main": "src/mod.mjs", "exports": "src/mod.mjs",