Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
custom-jeans
Advanced tools
manages custom code for geenee templates
This package is used in connection with geenee templates. If you want to generate a template, you can call the geenee cli. Or, you can use the geenee-spell package to handle a complete regeneration within node.
Include the package:
npm i custom-jeans
Normally, you call storeCustomCode
before making programmatic changes, and then insertCustomCode
afterward.
const {storeCustomCode, insertCustomCode} = require('custom-jeans')
(async () => {
const customCode = await storeCustomCode(
codeDir, config
)
// more code...
const customCodeDoc = `${codeDir}/meta/customCode.json`
await insertCustomCode(
codeDir, customCodeDoc, config
)
})();
An async function that takes a rootDir ROOT_DIR
and a config Configuration (a type exposed in magicalstrings) and returns a customCode json. Further, the function stores the custom code json in the file ROOT_DIR/meta/customCode.json
.
An async function that takes a rootDir ROOT_DIR
, an addedCodeDoc ADDED_CODE_DOC
and a config Configuration (a type exposed in magicalstrings) and will insert the custom changes where they belong within ROOT_DIR
.
The value of customCodeDoc
is normally ROOT_DIR/meta/customCode.json
, but of course can be replaced if you want to manipulate a copy or generate it directly.
FAQs
manages custom code for geenee templates
The npm package custom-jeans receives a total of 20 weekly downloads. As such, custom-jeans popularity was classified as not popular.
We found that custom-jeans 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.