
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@thaerious/utility
Advanced tools
Covert strings between different styles.
convert.delimiter(string, delimiter = '-')
convert.dash(string)
convert.pascal(string)
convert.camel(string)
Manage json files in one step.
fsjson.load(...paths) : if exists object from file else {}
fsjson.save(path, json) : makes directory if missing
fsjson.merge(path, object)
fsjson.writeField path, key, value)
Make the parent directory of a path. Concats paths, if terminted with '/' treats as a path to a directory.
mkdirIf (...paths:string) => fullpath
seekFiles(roots:string[]) => filedata[]
Recursively seek all files that pass some test.
{ root: '',
dir: 'sub',
base: 'j1.json',
ext: '.json',
name: 'j1',
full: 'sub/j1.json'
}
bfsObject.first(root : object, key : string))
Return the first object that has a key parameter with any value.
bfsObject.first(root : object, key : string, value : string))
Return the first object with a matching key:value pair.
bfsObject.first(root : object, cb : function))
Return the first object for which cb(object) returns true.
bfsObject.all(root : object, key : string))
Return all objects that have a key parameter with any value.
bfsObject.all(root : object, key : string, value : string))
Return all objects with a matching key:value pair.
bfsObject.all(root : object, cb : function))
Return all objects for which cb(object) returns true.
Replace template literals (${..}) with values. The key:value pairs in the 'literals' parmeter define the replacement.
replaceInFile(filename:string, literals:object)
loadTemplate(filename:string, literals:object)
npx c8 mocha test
FAQs
Covert strings between different styles.
The npm package @thaerious/utility receives a total of 1 weekly downloads. As such, @thaerious/utility popularity was classified as not popular.
We found that @thaerious/utility demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.