Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@nowmade/graphql-utils
Advanced tools
My template for creating npm packages using typescript.
NPM link: @el3um4s/typescript-npm-package-starter
To create a new project based on this template using degit:
npx degit el3um4s/typescript-npm-package-starter
Then install the dependencies with
npm install
Now update the name field in package.json with your desired package name. Then update the homepage field in package.json. And finally add your code.
Run
npm run build
You can test the code with Jest
npm test
You can find the test coverage in coverage/lcov-report/index.html
.
You can check and upgrade dependencies to the latest versions, ignoring specified versions. with npm-check-updates:
npm run check-updates
You can also use npm run check-updates:minor
to update only patch and minor.
Instead npm run check-updates:patch
only updates patch.
First commit the changes to GitHub. Then login to your NPM account (If you don’t have an account you can do so on https://www.npmjs.com/signup)
npm login
Then run publish:
npm publish
If you're using a scoped name use:
npm publish --access public
To update the package use:
npm version patch
and then
npm publish
To use the package in a project:
npm i @el3um4s/typescript-npm-package-starter
and then in a file:
import { ciao } from "@el3um4s/typescript-npm-package-starter";
const b = ciao("mondo");
console.log(b); // Ciao Mondo
FAQs
Utils to clean graphql documents
We found that @nowmade/graphql-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.