1.7.12 • Published 1 year ago

sr_common v1.7.12

Weekly downloads
5
License
ISC
Repository
github
Last release
1 year ago

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

1 year ago

1.7.11

1 year ago

1.7.9

2 years ago

1.7.10

2 years ago

1.7.8

3 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.3

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.0.0

4 years ago