@putout/operator-filesystem 2.12.0 → 2.12.1

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 (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,13 +13,14 @@ npm i putout @putout/operator-filesystem
13
13
 
14
14
  ## API
15
15
 
16
- ### `creatFile(directoryPath: DirectoryPath, name: string, content?: string): FilePath`
16
+ ### `createFile(directoryPath: DirectoryPath, name: string, content?: string): FilePath`
17
17
 
18
18
  ```js
19
19
  const {operator} = require('putout');
20
20
  const {
21
21
  createDirectory,
22
22
  findFile,
23
+ createFile,
23
24
  } = operator;
24
25
 
25
26
  const [dirPath] = findFile(ast, 'hello');
@@ -92,7 +93,7 @@ const name = getFilename(filePath);
92
93
 
93
94
  ```js
94
95
  const {operator} = require('putout');
95
- const {getFilename} = operator;
96
+ const {getFilename, getFileType} = operator;
96
97
 
97
98
  getFileType(filePath);
98
99
  // returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-filesystem",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout operator adds ability to filesystem referenced variables that was not defined",