
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@qrohlf/bones
Advanced tools
Bones is a small scaffolding utility for code projects. It runs in node, but can be useful in any kind of project where you find yourself creating the same set of boilerplate files over and over.
npm install -g @qrohlf/bones
.bones
folder with an example component
template:cd ~/myproject
bones init
bones component MyComponent
$EDITOR ./MyComponent
mkdir .bones/mytemplate
vim .bones/mytemplate/__name__.js
Bones operates on templates that you define in the .bones
directory of your
project. These templates can be as simple as a single file, or as complex as
as set of nested directories.
bones templatename destination [arg1=value arg2=value...]
In filenames, directory names, and template file contents, anything surrounded
by double underscores (i.e. __name__
) will be replaced with the value you
provided on the command line.
The __name__
parameter is populated by default with the basename of the
destination argument. You can override this by passing name=YOURNAME
as part
of the argument list.
There are also a number of string helpers you can use for transforming variables.
The syntax for doing this is __name|snakeCase
. The currently available helpers
are:
helper | output |
---|---|
camelCase | fooBar |
pascalCase | FooBar |
snakeCase | foo_bar |
kebabCase | foo-bar |
upperCase | FOOBAR |
upperSnakeCase | FOO_BAR |
lowerCase | foobar |
Bones uses a whitelist to determine which files to run through the template engine and which files to copy. See the default config for a list of file extensions that are interpreted as templates.
You can see some template examples in the .bones directory of this repo.
You can set per-project configuration values in .bones/bones.config.js
which
will override the defaults. See the default config for
all of the possible options.
Bones is MIT-licensed
FAQs
A simple Javascript scaffolding tool
We found that @qrohlf/bones 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.