fs-time-prefix

1.2.0 • Public • Published

Descriptions

This package is used to add time prefix and write file

Install

npm install fs-time-prefix

Usage

Sample Code

var fsp = require('../index');
var testData = {
  name : "lulala",
  nickname : "poka"
};

fsp.writeTimePrefix('./test123.json', testData);
fsp.writeJsonFile('./test123.json', testData);

Sample Result

There's a file named 20151219_231425_YourUserName_wahaha.json appears in '../data/' directory.

Details

  • If you input JSON object, we'll stringify for you, so don't worry. (If you use timeprefix function)
  • This is a extension package of fs-promise, most original functions are not JSON processed.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i fs-time-prefix

Weekly Downloads

1

Version

1.2.0

License

ISC

Last publish

Collaborators

  • lulalachen