![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@blinkmobile/blinkmrc
Advanced tools
bit like https://github.com/yeoman/configstore but with home-directory and project-specific files
bit like https://github.com/yeoman/configstore but with home-directory and project-specific files
We extracted this from blinkmobile/bmp-cli for the benefit of our other CLI projects.
This is a basic configuration file management library, hardcoded with defaults that suit our purposes. Like git and npm, this library straddles configuration files in 2 locations:
your home directory (based on your operating system), where files are readable by the current user and inaccessible by other users
your project directory, where files are readable by anyone with access to the project (i.e. if you version control these files with your project)
This pair of configuration files are both JSON-formatted.
By default we use the following filenames (but this is configurable):
user: blinkmrc.json
project: .blinkmrc.json (like .eslintrc.json or .travis.yml)
const blinkmrc = require('@blinkmobile/blinkmrc');
const pkg = require('./package.json');
userConfig (options: ConfigOptions) => ConfigStore
const userConfig = blinkmrc.userConfig({ name: pkg.name, /* ... */ });
interface ConfigOptions {
fileMode = 0o600: Number,
userConfigDir?: String,
...ConfigOptions
}
project (options: ConfigOptions) => ConfigStore
const projectConfig = blinkmrc.projectConfig({ name: pkg.name, /* ... */ });
interface ConfigOptions {
cwd = process.cwd(): String,
fileMode = 0o666: Number,
...ConfigOptions
}
interface ConfigOptions {
name: String,
filename = 'blinkmrc.json': String,
fileMode?: Number
}
interface ConfigStore {
load () => Promise[Object],
update (updater: UpdaterFunction) => Promise,
write () => Promise
}
load () => Promise[Object]
Locate the configuration file. If found, parse it as JSON and return the Object. If not found:
userConfig: return a new Object
projectConfig: reject with an Error
update (updater: UpdaterFunction) => Promise[Object]
Load the configuration data as above. Then pass it to the provided UpdaterFunction. Write the result of the UpdaterFunction back to the configuration file.
This function receives the current configuration data. This function may or may not change this data (as you determine) before returning it.
write (config: Object) => Promise[Object]
Store the provided configuration data in the appropriate file.
2.0.0 - 2018-07-20
update load-json-file to 4.0.0 (from 1.1.0)
update write-json-file to 2.0.0 (from 1.2.0)
FAQs
bit like https://github.com/yeoman/configstore but with home-directory and project-specific files
The npm package @blinkmobile/blinkmrc receives a total of 0 weekly downloads. As such, @blinkmobile/blinkmrc popularity was classified as not popular.
We found that @blinkmobile/blinkmrc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.