Fix naming

This commit is contained in:
Benjamin Bädorf 2020-11-25 15:46:35 +01:00
parent 6b38a841f2
commit 79178f9a58
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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",