faker-js / faker Goto Github PK
View Code? Open in Web Editor NEWGenerate massive amounts of fake data in the browser and node.js
Home Page: https://fakerjs.dev
License: Other
Generate massive amounts of fake data in the browser and node.js
Home Page: https://fakerjs.dev
License: Other
Dear fellow contributors, we're targeting this repo as the long-term home of Faker.js. We're refing you as contributors so that you can update your codebases, projects, etc that may use Faker. We're hoping to provide a stable place for the future of Faker.
We plan on releasing the tarballs of the faker
npm package as @faker-js/faker
at the same exact content and version as was previously released for faker
.
Expect this to happen in the next few days.
@FotoVerite
@BryanDonovan
@UmairJibran
@fariborzemami
@jsoref
@tylerreichle
@Moosh-be
@cliffpyles
@Stichoza
@prinx
@jayliu50
@josefsalyer
@lucasjellema
@van100j
@mrstebo
@robscotts4rb
@mandulaj
@jreina
@lbuerste
@vivekseth
@glyad
@portse
@chinclubi
@MoonWalker0
@sbmart
@titonobre
@Aleyasen
@richardbutler
@hkal
@AlmazN
@LoLFactor
@DimitarChristoff
@ducin
@ad-walker
@strobelt
@andrewmcoupe
@aweary
Serve a documentation as own website.
We could e.g. use VitePress for that.
Happy to help if decision was made what to use for that website.
For now it would be enough to use gh-pages
.
I was releasing 6.0.0-alpha.3
and I noticed that the src
folder is in the distributable package.
Run npm pack
and review the subsequent tarball.
No response
Create and link a Discord community server.
(If you need a moderator for the start and initial setup, I can help)
Open GitHub Discussion
The original repo was not deleted for unknown reasons.
That was also an attempt to show private companies that open source developers also need support. Doing this is probably not what the community wants. It also is kind disrespectful with the creators of faker, as it does not help them at all.
something
No response
the new types in 6.0.0-alpha.3 (thanks!) don't handle cases where the DT types allowed ReadonlyArray
, e.g. random.arrayElement
.
import faker from '@faker-js/faker'
const items = ['one', 'two', 'three'] as const
const pick = faker.random.arrayElement(items)
also note, that the other way around would be fine:
No response
@damienwebdev and I discussed deprecating the Code of Merit and replacing it with a Code of Conduct. I just started small and deleted the Code of Merit, we can find an appropriate Code of Conduct to replace it with
Step 1: Remove Code of Merit #32 (comment)
Step 2: Add Standard Code of Conduct
In fact, most of the locale.address.*
properties seems to be unused. Am I missing something, is this being used somewhere else, or should I open a PR and propose a fix?
faker.setLocale('nb_NO');
// should print "#{street_name} #{building_number}" - i.e. "Some street 123", not "123 Some street"
console.log(faker.address.streetAddress());
No response
Check https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L27 how to do it
I've pulled all of these tar balls from the registry and added them to the v6.0.0-alpha.0 release. I've also verified the checksums of the files I pulled against the registry and additionally uploaded them to the release.
I performed the check by doing:
curl https://registry.npmjs.org/faker | jq '.versions["VERSION"].dist.shasum'
and comparing against the versions I pulled from NPM. Others can verify these against the checksums I put in the 6.0.0-alpha.0 release.
Version | Registry URL Tarball | Registry Checksum | Github Mirror Tarball | Github Checksum |
---|---|---|---|---|
5.5.3 | 5.5.3 | c57974ee484431b25205c2c8dc09fda861e51e0e | 5.5.3 | c57974ee484431b25205c2c8dc09fda861e51e0e |
5.5.2 | 5.5.2 | d6f99923fb757b26733a6d2396ddb448ac5bb446 | 5.5.2 | d6f99923fb757b26733a6d2396ddb448ac5bb446 |
5.5.1 | 5.5.1 | 30e4e8ba15c8c08d0494ba935f247d8e2469675d | 5.5.1 | 30e4e8ba15c8c08d0494ba935f247d8e2469675d |
5.5.0 | 5.5.0 | 17922f6252cd44c732943c89c2f0f0c7e189ffe3 | 5.5.0 | 17922f6252cd44c732943c89c2f0f0c7e189ffe3 |
5.4.0 | 5.4.0 | f18e55993c6887918182b003d163df14daeb3011 | 5.4.0 | f18e55993c6887918182b003d163df14daeb3011 |
5.3.1 | 5.3.1 | 67f8f5c170b97a76b875389e0e8b9155da7b4853 | 5.3.1 | 67f8f5c170b97a76b875389e0e8b9155da7b4853 |
5.3.0 | 5.3.0 | fd98c2d86d134776d837b342d3a431ac06eb078c | 5.3.0 | fd98c2d86d134776d837b342d3a431ac06eb078c |
5.2.0 | 5.2.0 | 5ee7ca475737eda8cf59c0cbaae5f5068e668dd9 | 5.2.0 | 5ee7ca475737eda8cf59c0cbaae5f5068e668dd9 |
5.1.0 | 5.1.0 | e10fa1dec4502551aee0eb771617a7e7b94692e8 | 5.1.0 | e10fa1dec4502551aee0eb771617a7e7b94692e8 |
5.0.0 | 5.0.0 | ceaf8120e37994007d6fb0e73479bef0406bfe74 | 5.0.0 | ceaf8120e37994007d6fb0e73479bef0406bfe74 |
4.1.0 | 4.1.0 | 1e45bbbecc6774b3c195fad2835109c6d748cc3f | 4.1.0 | 1e45bbbecc6774b3c195fad2835109c6d748cc3f |
4.0.0 | 4.0.0 | fecb0a7a5fc950bc93377688498c67145dc135c8 | 4.0.0 | fecb0a7a5fc950bc93377688498c67145dc135c8 |
3.1.0 | 3.1.0 | 0f908faf4e6ec02524e54a57e432c5c013e08c9f | 3.1.0 | 0f908faf4e6ec02524e54a57e432c5c013e08c9f |
3.0.1 | 3.0.1 | c36278cd423f3c5375bc270466a223485c0e7bb2 | 3.0.1 | c36278cd423f3c5375bc270466a223485c0e7bb2 |
3.0.0 | 3.0.0 | ee9f7a3f40c15f68b9402088aa8f18a0ce4da00e | 3.0.0 | ee9f7a3f40c15f68b9402088aa8f18a0ce4da00e |
2.1.5 | 2.1.5 | e07f8bff5e1262e67fd5193fca0785f4ca681150 | 2.1.5 | e07f8bff5e1262e67fd5193fca0785f4ca681150 |
2.1.4 | 2.1.4 | c6e665cc42332e874cc03da5f697a35ff5bfb65b | 2.1.4 | c6e665cc42332e874cc03da5f697a35ff5bfb65b |
2.1.3 | 2.1.3 | f294edd7d79b41b40f49986643e7107758534305 | 2.1.3 | f294edd7d79b41b40f49986643e7107758534305 |
2.1.2 | 2.1.2 | 78b607f68d92b745d9c80b35066cfd4a1b66f1e5 | 2.1.2 | 78b607f68d92b745d9c80b35066cfd4a1b66f1e5 |
2.1.1 | 2.1.1 | ae2cc245a34635e2e9af4477b997c5f7db4a4b1d | 2.1.1 | ae2cc245a34635e2e9af4477b997c5f7db4a4b1d |
2.1.0 | 2.1.0 | ea5eb0719dd38771bef800f39043fe632d88a8c5 | 2.1.0 | ea5eb0719dd38771bef800f39043fe632d88a8c5 |
2.0.3 | 2.0.3 | a4da598e9649f89d8f2b2be6f9169d1ad7eb251e | 2.0.3 | a4da598e9649f89d8f2b2be6f9169d1ad7eb251e |
2.0.2 | N/A | |||
2.0.1 | 2.0.1 | b7eaba5a1d17eda37389332dbbef9de7e96a1812 | 2.0.1 | b7eaba5a1d17eda37389332dbbef9de7e96a1812 |
2.0.0 | N/A | N/A | ||
1.1.0 | 1.1.0 | 230738ebd37edad9de4a421de12922bd8206a872 | 1.1.0 | 230738ebd37edad9de4a421de12922bd8206a872 |
1.0.1 | 1.0.1 | da38a8e6366621a042c21d51bb647cf034596eea | 1.0.1 | da38a8e6366621a042c21d51bb647cf034596eea |
1.0.0 | 1.0.0 | c8516d64fc0f0f07acc4215202e5ad3908d52578 | 1.0.0 | c8516d64fc0f0f07acc4215202e5ad3908d52578 |
Adding new feature songName
which is generate a random song name based on country locales, it's real song name not dummy ones.
Locales -> definitions -> data e.g https://github.com/faker-js/faker/blob/main/src/address.ts#L258
No response
This issue created for awareness if there's strategy to load locales in a more async and on-demand way.
We'll also need to update the Contributing guidelines
We don't want to publish the entire docs directory when releasing the package. Update the .npmignore file to contain the new docs directory.
See: https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
No response
https://nodejs.org/en/about/releases/
Node 18 is slated to release on 2022-04-19
, we need to update the ci pipeline to this on that day.
The pool of strings from which random.words()
pulls values includes strings that have parentheses, e.g. Cocos (Keeling) Islands
and Killer Whale (Orca)
. This can result in (Keeling)
and (Orca)
being returned.
There's a larger problem here of non-alphabetic characters being returned in words. Obviously some non-alpha characters are desired in words, e.g. -
, but some are not. We should decide on the set of acceptable characters that word()
can return and regex the others out.
Mock faker.fake
with the above mentioned values and you can see the bad returns.
Add dist
to .gitignore?
I know almost nothing about legalities, but it looks like Marak Squires still holds the copyright rights to the forked code, according to the MIT-LICENSE.txt
Lines 1 to 3 in 9506122
It looks like you are attempting to turn this into a community-controlled package, which is a great idea given recent events. Since I've been using it at my day job I'd be willing to pitch in and help. FWIW I'm already mentioned in the README, as I wrote the Perl Data::Faker package that it's based on...
@Geertvdc asked in https://github.com/withshepherd/faker.js/issues/1#issue-1094203363:
I noticed this morning that the original faker repo and npm package were all removed or emptied (https://github.com/Marak/Faker.js). Looking for a fork or alternative I bumped into this.
Will you continue building / supporting faker.js? Do you need any help? Could you elaborate on the plans? Did you know Marak?
I think Faker.js by Marak was a well used library and it would be a shame if it would go away. I would love helping out in getting this back up if you need any help.
Continuing conversation here
test/support/chai.js
test/support/function-helpers.js
test/support/luhnCheck.js
test/support/sinon-1.5.2.js
test/support/walk_dir.js
Are a few files in the codebase that I haven't reviewed, but I think are worth investigating whether they can be replaced with::
Just adding here that I've made sure to snag ownership of https://www.npmjs.com/@faker-js/faker.js
Link to documentation website so I can find it in future:
Currently, in the README the Demo is still marked as Coming soon
.
We could build a small demo website that allows users to:
We could use a Vite/React or Vite/Svelte website as we have @Shinigami92 in our team. ๐
As Faker is also usable in Node.js, should we have a demo CLI tool? Or a faker-cli? Not sure it's related to this issue though.
No response
No response
As a developer, I want random.word()
to draw from the entire pool of appropriate words.
Add the word methods (word.noun
, word.verb
, etc.) to the pool from which random.word()
pulls.
Lines 150 to 182 in 9506122
These words might be transitively included via some other method, I'm not sure.
No response
When you link https://fakerjs.dev in chats like Discord or on Twitter, it won't render any rich preview or site description.
The rich preview currently has no creative to show. This is okay. Please use a placeholder image (any placeholder image). Maybe an abstract geometric background :-)
This currently mirrors the original settings from https://github.com/marak/Faker.js/ which means that github is displaying Marak as the sponsorable individual on this repo's page:
and on issue pages:
Since this fork is trying to provide a version of the tool with a new set of maintainers you probably want to update this. See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository for details.
It might be worthwhile to create a Slack or Discord space to discuss the way forward in real-time?
If you need earlier versions of faker, see #5
faker.js's history is one of the best examples why it's useful to commit the package lock file.
This stabilizes also CI
Currently the FUNDING.yml points to Marak (previous author whom is now banned from github).
Maybe this should be updated or removed?
Change or delete the funding information to match the new maintainers
eslint:recommended
or the existing rules, something else?Hello,
A few days ago, I received an issue on @luciferreeves/blaver
to merge the project with this repo and maintain this project instead. Now, I'm not going to try and read the tea leaves and figure out what the future looks like. The question for me was, "Do I maintain the repo alone or move to a more community based approach?" I thought the answer was obvious and that I can maintain blaver
, but now I'm convinced of the opposite.
I pondered over the question for a few days and I thought, its much easier to contribute to a public repository rather than a repo that I handle myself. I would continue to improve faker.js but I think it's much better if I do this here.
So, I would like to retire/archive the repo and update the readme of the project once I have a confirmation here and I would deprecate the package on NPM, and link to release of faker-js/faker
.
I also registered a domain (blaver.dev), which I can point to fakerjs.dev, if you guys want that. Let me know what you think.
In the "Docs" section, the link points to the original github.io page which is no longer working. Create a faker-js.github.io
repository and host the docs there (just a suggestion)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.