pxtorem-css 1.0.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/Readme.md +3 -2
  2. package/app.js +2 -1
  3. package/package.json +1 -1
package/Readme.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ### A nodejs cli that convert px to rem in any css file
4
4
 
5
5
  <br>
6
+
6
7
  ## Description
7
8
  Convert px to rem in css with advanced functionality. pxtorem helps you reduce time when you write css code. This tool build with pure nodejs.
8
9
 
@@ -19,12 +20,12 @@ Features:
19
20
 
20
21
  Locally:
21
22
  ```bash
22
- npm i pxtorem
23
+ npm i pxtorem-css
23
24
  ```
24
25
 
25
26
  Globally:
26
27
  ```bash
27
- npm i -g pxtorem
28
+ npm i -g pxtorem-css
28
29
  ```
29
30
 
30
31
  ## Usage
package/app.js CHANGED
@@ -82,7 +82,8 @@ function pxtorem(
82
82
  flag: "w",
83
83
  });
84
84
  } else {
85
- fs.writeFileSync(v, changeData, {
85
+ const destination = path.join(path.dirname(v), fileName);
86
+ fs.writeFileSync(destination, changeData, {
86
87
  encoding: "utf-8",
87
88
  flag: "w",
88
89
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxtorem-css",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "A nodejs cli that convert css unit px to rem",
5
5
  "main": "app.js",
6
6
  "scripts": {},