
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Copy your frontend dependencies directly into your assets.
npm i -D codep
import { Codep } from "codep"
await new Codep("assets/vendor", {
exclude: ["jquery", "modernizr"]
}).paste()
const codep = new Codep(outDir, options?)
Type : string
Specify an output folder for all copied files
Type: object
Property | Type | Default | Description |
---|---|---|---|
source | string | node_modules | Specify the node modules directory |
pkg | string | package.json | Specify the json file location |
flattenDist | boolean | true | Keep the dist folder or flatten in the root folder from each dependency |
exclude | string|array | [] | Specify the name of the dependencies you don't want to copy, e.g. ['jquery', 'modernizr'] |
ext | string|array | Only copied files with the specified extension. Use * to grab all files from dependencies | |
overwrite | boolean | false | Do you want to overwrite existing dependencies in the outdir ? |
devDependencies | boolean | false | Should you need to grab devDependencies as well? |
ext
Default: js,jsx,ts,tsx,css,scss,less,stylus,map,eot,woff,woff2,ttf,svg,png,jpg,jpeg
Write source files to outDir
asynchronously.
;(async () => {
await codep.paste()
})()
Handle progress reports the way you want.
import { Codep } from "codep"
// initialize Codep
const codep = new Codep("assets/vendor", {
exclude: ["jquery", "modernizr"]
})
// handle reports or just ignore this block
codep.on("progress", data => {
// doing things on progress
})
// copying
;(async () => {
try {
await codep.paste()
} catch (error) {
throw error
}
})()
Type: Function
Type: Manifest
Manifest is an object with properties below:
Property | Type |
---|---|
success | number |
failed | number |
processed | number |
percent | string |
vendors | string[] |
totalFiles | number |
log | Log |
FAQs
Copy your frontend dependencies directly into your assets
The npm package codep receives a total of 0 weekly downloads. As such, codep popularity was classified as not popular.
We found that codep 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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.