-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Typescript Proclamations and Readme fix #2
- Loading branch information
Showing
8 changed files
with
693 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# f2json | ||
|
||
[![NPM version](https://img.shields.io/npm/v/f2json)](https://npmjs.org/package/f2json) [![Build Status](https://img.shields.io/circleci/build/github/Changlon/f2json/master)](https://app.circleci.com/pipelines/github/Changlon/f2json) [![Codecov](https://img.shields.io/codecov/c/github/Changlon/f2json)](https://app.codecov.io/github/Changlon/f2json) [![GitHub issues](https://img.shields.io/github/issues/Changlon/f2json)](https://github.com/Changlon/f2json/issues) [![GitHub license](https://img.shields.io/github/license/Changlon/f2json)](https://github.com/Changlon/f2json/blob/master/LICENSE) | ||
|
||
> Quickly create read-write json files [f2json](https://github.com/Changlon/f2json) | ||
|
||
* Quick Import and write out the JSON data to the file | ||
* Introduce a Json file operation in your code using a relative path | ||
* You can use the created file as a temporary cache | ||
|
||
|
||
{{#module name="f2json"}}{{>body}}{{/module}} | ||
|
||
|
||
## Installation | ||
|
||
### npm | ||
```sh | ||
npm install f2json | ||
``` | ||
|
||
### yarn | ||
|
||
```sh | ||
yarn add f2json | ||
``` | ||
|
||
## API Reference | ||
{{#module name="f2json"~}} | ||
{{>body~}} | ||
{{>member-index~}} | ||
{{>members~}} | ||
{{/module~}} | ||
|
||
## Contributing | ||
|
||
Please submit all issues and pull requests to the [Changlon/f2json](https://github.com/Changlon/f2json/issues) repository! | ||
|
||
## Tests | ||
|
||
Run tests using `npm test`. | ||
|
||
## Support | ||
|
||
If you have any problem or suggestion please open an issue [here](https://github.com/Changlon/f2json/issues). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @author Changlon <[email protected]> | ||
* @github https://github.com/Changlon | ||
* @date 2022-01-29 22:55:57 | ||
*/ | ||
|
||
declare class F2Json { | ||
dirname:string | ||
constructor(dirname?:string) | ||
public getLastCallDirname():string | ||
public json2file(path_:string,json:{[k:string]:any}):void | ||
public file2json (path_:string,encoding:string):{ | ||
json:{[k:string]:any}, | ||
ok:()=>void | ||
} | ||
public clear(path_:string):void | ||
} | ||
|
||
|
||
|
||
declare namespace F2Json { | ||
interface F2JsonError extends Error {} | ||
type a = {a:string} | ||
} | ||
|
||
export = F2Json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.