[plugin] Node-webkit Node.js PATH module

Post your completed addons to share with the community

Post » Sat Dec 08, 2012 2:42 am

This plugin contains utilities for handling and transforming file paths. Almost all these methods perform only string transformations. The file system is not consulted to check whether paths are valid.

Contains just expressions!

demo here

Plugin here

Info on the implemented stuff

haven't tested it thoroughly so please report any issues, i will try to fix asap!JohnnySheffield2012-12-08 02:44:59
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Sun Dec 09, 2012 12:09 am

Just curios, what are differences between FS and Path?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Sun Dec 09, 2012 1:29 am

Path module provides string operations for manipulating file paths. Fs module provides methods for actual file operations.

That way, you can take a path to a file from user, make some string operations on given path using path module, then do some file operations on a newly calculated path using fs module.

I'm writing plugins in some (I hope) meaningful way; os for accessing info on operating system, then path to make path operations, then fs to use those paths for making file operations.

Next, I'll try to implement URL and query string modules for URL operations. That way we have some basic methods and modules exposed to use node.is part of node-webkit.
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Sun Dec 09, 2012 2:26 am

Thanks!

Do you think could you merge with 2 functions for node-webkit main plugin?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests