Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "ini-parser", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A better .ini files parser", | ||
@@ -5,0 +5,0 @@ "keywords": ["ini", "linux", "configration", "parser", "files"], |
@@ -13,54 +13,12 @@ # Node ini-parser | ||
var content = fs.readFileSync('path/to/file', 'utf-8') | ||
parse.parse(String) | ||
var data = parser.parse(content) | ||
parser.parseFile('path/to/file', function(error, data){ | ||
// do something | ||
}) | ||
parser.parseFile('path/to/file', callback(error, data)) | ||
var data = parse.parseFileSync('path/to/file') | ||
parse.parseFileSync('path/to/file') | ||
``` | ||
## Example | ||
file rhythmbox.desktop | ||
```ini | ||
[Desktop Entry] | ||
Name=Rhythmbox | ||
GenericName=Music Player | ||
X-GNOME-FullName=Rhythmbox Music Player | ||
Comment=Play and organize your music collection | ||
Exec=rhythmbox %U | ||
Terminal=false | ||
Type=Application | ||
Icon=rhythmbox | ||
X-GNOME-DocPath=rhythmbox/rhythmbox.xml | ||
Categories=GNOME;GTK;AudioVideo; | ||
MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac; | ||
Keywords=Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod; | ||
StartupNotify=true | ||
X-GNOME-Bugzilla-Bugzilla=GNOME | ||
X-GNOME-Bugzilla-Product=rhythmbox | ||
X-GNOME-Bugzilla-Component=general | ||
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata; | ||
X-GNOME-Bugzilla-Version=2.96 | ||
Actions=Play;Pause;Next;Previous; | ||
X-Ubuntu-Gettext-Domain=rhythmbox | ||
[Desktop Action Play] | ||
Name=Play | ||
Exec=rhythmbox-client --play | ||
[Desktop Action Pause] | ||
Name=Pause | ||
Exec=rhythmbox-client --pause | ||
[Desktop Action Next] | ||
Name=Next | ||
Exec=rhythmbox-client --next | ||
[Desktop Action Previous] | ||
Name=Previous | ||
Exec=rhythmbox-client --previous | ||
``` | ||
```js | ||
@@ -115,4 +73,45 @@ var parser = require('ini-parser') | ||
} | ||
``` | ||
<br> | ||
file rhythmbox.desktop | ||
```ini | ||
[Desktop Entry] | ||
Name=Rhythmbox | ||
GenericName=Music Player | ||
X-GNOME-FullName=Rhythmbox Music Player | ||
Comment=Play and organize your music collection | ||
Exec=rhythmbox %U | ||
Terminal=false | ||
Type=Application | ||
Icon=rhythmbox | ||
X-GNOME-DocPath=rhythmbox/rhythmbox.xml | ||
Categories=GNOME;GTK;AudioVideo; | ||
MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac; | ||
Keywords=Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod; | ||
StartupNotify=true | ||
X-GNOME-Bugzilla-Bugzilla=GNOME | ||
X-GNOME-Bugzilla-Product=rhythmbox | ||
X-GNOME-Bugzilla-Component=general | ||
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata; | ||
X-GNOME-Bugzilla-Version=2.96 | ||
Actions=Play;Pause;Next;Previous; | ||
X-Ubuntu-Gettext-Domain=rhythmbox | ||
[Desktop Action Play] | ||
Name=Play | ||
Exec=rhythmbox-client --play | ||
[Desktop Action Pause] | ||
Name=Pause | ||
Exec=rhythmbox-client --pause | ||
[Desktop Action Next] | ||
Name=Next | ||
Exec=rhythmbox-client --next | ||
[Desktop Action Previous] | ||
Name=Previous | ||
Exec=rhythmbox-client --previous | ||
``` | ||
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
3903
116
1