npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

commonos

v0.1.14

Published

CommonOS, a unified file library for nodeJS and Python

Downloads

90

Readme

cOS

Short for common OS.

Provides a common set of OS operations in Javascript and Python.

Running tests:

Javascript

Ensure mocha is installed globally

	c:/ie/cOS >> mocha test

Python

Ensure tryout is installed and properly pathed

	c:/ie/cOS >> python test

Todo:

  • [ ] rename:
    • collectFiles > getFiles
    • collectFilesSync > getFilesSync
    • copyTree > copyDir
  • [ ] refactor javascript's getFiles to match python's implementation as it's far superior
  • [ ] refactor the places javascript's getFiles is used to work with the new implementation
  • [ ] add getSequenceBaseName to javascript
  • [ ] add getFrameNumber to javascript

0.1.0 Changes

Added

  • getFiles (python)
  • getSequenceBaseName (python)
  • getFrameNumber (python)

Modified

  • normalizeDir - no longer removes starting slash
  • getFileInfo - relative dir now prefixed w/ ./
  • runCommand (python) - now just runs the command w/ os.system, used to be a duplicate of startSubprocess

Renamed

  • stripExtension > removeExtension
  • getFileInfo > getPathInfo
  • dirname > getDirName
  • collectFilenamesSync > collectFilesSync
  • collectRegexMatches > getRegexMatches

Removed

  • fileExtension (use getExtension)
  • filePrep (use unixPath)
  • pathInfo (use getPathInfo)
  • isDirSync (antipattern, don't use)
  • isDir (antipattern, don't use)
  • isFileSync (antipattern, don't use)
  • absolutePath (unused)
  • remove (use removeFile or removeDir)
  • removeSync (use removeFileSync or removeDirSync)
  • collectFilesSync (unused)
  • getDir (use getDirName)
  • unlinkSync (use removeFileSync)
  • createFolder (use makeDir)
  • createFolderSync (use makeDir)
  • osPath (use pathman)
  • universalPath (use pathman)
  • getConvertFile (unused)
  • checkTempDir (doesn't belong here)

Moved

  • updateTools moved to moduleTools
  • killJobProcesses moved to shepherd.computer

0.0.3 Changes

Modified

  • Modifications to names of functions
  • Python normalizeDir >> ensureEndingSlash
  • Javascript dirName >> getDir
  • Javascript unlinkSync >> removePathSync
  • Python emptyFolder >> emptyDir
  • Javascript copySync >> copyTreeSync
  • Javascript shouldExclude >> contains
  • Python startSubprocess >> runCommand

Added

  • Python - removeStartingSlash(path)
  • Python - normalizeDir(path)
  • Javascript - unixPath(dir)
  • Javascript - universalPath(dir)
  • Python - normalizeExtension(ext)
  • Javascript - fileExtension(path)
  • Javascript - getConvertFile(path)
  • Javascript - getVersion(filename)
  • Javascript - incrementVersion(filename)
  • Javascript - padLeft(str, padString, length)
  • Python - upADir(path)
  • Javascript - getFrameRange(path)
  • Javascript - mkdir(dirname)
  • Python - isDir(path)
  • Javascript - checkTempDir()
  • Python - join(a, b)
  • Python - absolutePath(path)
  • Python - realPath(path)
  • Python - getFiles(path)
  • Python - removePath(path)
  • Python - removeDir(path)
  • Python - cwd()
  • Python - ensureArray(val)
  • Python - collectFiles(searchPaths, extensions, exclusions)
  • Python - collectAllFiles(searchDir)
  • Javascript - runPython(pythonFile)
  • Python - isWindows()

Removed

  • Python - getParentPID() >> Shepherd
  • Python - killJobProcesses >> Shepherd