Fix naming
This commit is contained in:
parent
6b38a841f2
commit
79178f9a58
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue