1.7.12 • Published 2 years ago
sr_common v1.7.12
sr_common - common node functions
import
- const { fs_readTextFile } = require('sr_common');
date methods
- date_currentISO( )
- date_toISO()
file methods
- exists = await fs_exists(filePath)
- const {err,files } = await fs_readDir( dirPath )
- const {text} = await fs_readTextFile('.' + req.path);
- const {base64} = await fs_readBase64( filePath );
- const { items, errmsg } = await dir_itemList( gitPath ) ;
string methods
- string_head( str, lx )
- {part1, part2} = str_headSplit( str, lx )
- str_substrLenient( str, bx, lx )
publish instructions
- increment version number in package.json
- make sure new functions are exported from common-fs.js
- git add, commit, push to repo
- npm publish
- npm update in projects which use this package
1.7.12
2 years ago
1.7.11
3 years ago
1.7.9
3 years ago
1.7.10
3 years ago
1.7.8
4 years ago
1.7.7
5 years ago
1.7.6
5 years ago
1.7.3
5 years ago
1.7.5
5 years ago
1.7.4
5 years ago
1.7.2
5 years ago
1.7.1
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.0.0
5 years ago