Skip to content

Commit

Permalink
readme and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis Benson committed Mar 1, 2020
1 parent 0f090d9 commit 27177d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Expand Up @@ -5,21 +5,25 @@ declare namespace cpy {
interface SourceFile {
/**
Resolved path to file.
@example `/tmp/foo.bar`
*/
readonly path: string,

/**
Filename.
@example `foo.bar`
*/
readonly name: string,

/**
Filename without extension.
@example `foo`
*/
readonly nameWithoutExtension: string,

/**
File extension.
@example `.bar`
*/
readonly extension: string,
}
Expand Down
14 changes: 4 additions & 10 deletions readme.md
Expand Up @@ -129,31 +129,25 @@ const cpy = require('cpy');

Type: `string`

Path to file.

###### resolvedPath

Type: `string`

Resolved path to file.
Resolved path to file. Example: `/tmp/foo.bar`.

###### name

Type: `string`

File name.
Filename. Example: `foo.bar`.

###### nameWithoutExtension

Type: `string`

File name without extension.
File name without extension. Example: `foo`.

###### extension

Type: `string`

File extension.
File extension. Example: `.bar`.


## Progress reporting
Expand Down

0 comments on commit 27177d5

Please sign in to comment.